What
Puts the !info command into a (buggy yet) functional state. WIP fix for #260.
How
Refactor !info command
Update/replace outdated Discord.js classes/constructor for newly supported ones
Testing
[x] Administrative commands (i.e. add, remove, and edit) can only be executed in the #command-center
[x] Administrative commands (i.e. add, remove, and edit) can only be executed by guardians or helpers
[x] Single !info returns list of available terms or appropriate message (if no terms)
[x] !info add <term> <comma,seperated,keywords> -<description> command adds a term
[x] !info remove <keyword> command removes a term
[x] !info edit <keyword> -<new description> command edits a term
[ ] Description of a term allows formatting (emotes, spaces, line breaks, etc.)
TODOs
[ ] Decide if informative !info commands (i.e. non-administrative commands such as add, remove, edit) should be executable from any channel or only the command center and/or users with specific role(s). Fix/update code accordingly.
[ ] Currently, the !info edit command can only be called by using the first keyword (as opposed to the term or any other keyword) and can only be used to update the term's description. Decide if this is the desired behavior. Fix/update code accordingly.
[ ] Agree/decide on the use-case for the !info command (unclear from documentation and from issue #260) in particular the difference between term and keywords (as pointed out in #260).
[ ] Once agreement/decision on the use-case (previous item), update this TODOs list accordingly, if needed.
[ ] Update error messages according to its cause (e.g. !info edit in prohibited channel raises "You do not have the experience to complete this command" instead of "You are using the command in the wrong channel").
WIP
What Puts the
!info
command into a (buggy yet) functional state. WIP fix for #260.How
!info
commandTesting
!info
returns list of available terms or appropriate message (if no terms)!info add <term> <comma,seperated,keywords> -<description>
command adds a term!info remove <keyword>
command removes a term!info edit <keyword> -<new description>
command edits a termTODOs
!info
commands (i.e. non-administrative commands such as add, remove, edit) should be executable from any channel or only the command center and/or users with specific role(s). Fix/update code accordingly.!info edit
command can only be called by using the first keyword (as opposed to the term or any other keyword) and can only be used to update the term's description. Decide if this is the desired behavior. Fix/update code accordingly.!info
command (unclear from documentation and from issue #260) in particular the difference between term and keywords (as pointed out in #260).!info edit
in prohibited channel raises "You do not have the experience to complete this command" instead of "You are using the command in the wrong channel").