You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The aliases part relies on there already being a period at the beginning, but since this is a unicode character this is not the case. The only way it seems would be to rewrite the aliases bit to not always expect there to be a period at the beginning, which would also mean rewriting many commands.
I have no idea how the command system works internally and I cannot find much information about it, however it is possible that it is baked into discordrb which would be a bit more annoying.
Closest I could find is this, however as I do not know ruby I am unsure. ⓘ Jump to line
# A command that references another commandclassCommandAlias# @return [Symbol] the name of this aliasattr_reader:name# @return [Command] the command this alias points toattr_reader:aliased_commanddefinitialize(name,aliased_command)@name=name@aliased_command=aliased_commandendend
I cannot help with actually developing this much as ruby does not want to work for me, however I can still write (some) code.
The text was updated successfully, but these errors were encountered:
The command system is indeed baked into discordrb. I basically had to read the source code to understand it.
I could add this feature in a different way, though, by moving the command logic into a separate method, and adding a message event handler that runs on messages starting with ….
Some keyboards like to do this symbol instead of
...
.After looking in the code this may be a bit harder to implement
ⓘ Jump to line
The aliases part relies on there already being a period at the beginning, but since this is a unicode character this is not the case. The only way it seems would be to rewrite the aliases bit to not always expect there to be a period at the beginning, which would also mean rewriting many commands.
I have no idea how the command system works internally and I cannot find much information about it, however it is possible that it is baked into discordrb which would be a bit more annoying.
Closest I could find is this, however as I do not know ruby I am unsure.
ⓘ Jump to line
I cannot help with actually developing this much as ruby does not want to work for me, however I can still write (some) code.
The text was updated successfully, but these errors were encountered: