Should Command Groups be separated by a user-defined character, rather than whitespace?
See original GitHub issueIn 1.0’s current implementation of Commands, Modules. Groups, and Commands are separated from eachother by whitespace. For someone’s general usecase, this would not be an issue.
Consider the following scenario:
Module "module"
Group "group"
Command "command"
Remainder String "args"
Command "group"
Remainder String "args"
If a user executes ~module group command
, which command should the bot execute? In the current implementation, by default, the bot will execute the first match it finds, which would be module -> group
. However, what if the user wanted to execute module -> group -> command
?
With this proposal, the bot developer will be able to specify a string that should be expected between tokens when searching for a command. For example, the user could now discretely see a difference between:
~module.group.command args
and
~module.group command
Thoughts?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:6 (4 by maintainers)
Top GitHub Comments
this could be used to imitate a programming language (hell yeah) ~please.kill.me()
I’m all for it. Could make for some very creative uses.