!learn
Create a custom command that can be used to do a number of things. There are many variables that can be used.
%admin, %mod, %helper: Restrict the command to the designated staff level
%dm: Will dm the response instead of posting it in the channel
%embed: Will output the response into an embed format instead of plain text
%c: Can only be used with %embed. Provide an 8 number decimal or 6 character hexidecimal color to define the color of the embed
%cd: The cooldown of the custom command, in seconds. Can be up to 9,999,999. Does not apply to staff
%target: If the first argument in the command is a mention or ID, this command will target that member instead. If no valid member is found the command will not fire. Note, the command will not dm the member unless the %dm flag is also supplied.
%mention: If the first argument in the command is a mention or ID, unless target is also supplied in which case it will be second argument, then this will be replaced with that mention/tag. If none is supplied then the author's mention/tag will be used instead.
%content, %message: Will take whatever content is left after arguments are parsed and replace this variable with it.
%option: For use with the 'list' option, whatever valid option from the 'list' is used will be placed here.
--require=: A list of roles that this command requires to be used. Only a single role from the list is required to access, not all.
--deny=: A list of roles that can not use this command. Only a single role from the list is required to deny access, not all.
--role=: A list of roles that will be toggled, added, or removed when the command is done. A + indicates the role will be added, a - indicates the role will be removed. Putting neither will result in the role being toggled.
--list=: A list of valid inputs for the custom command. Note these CAN NOT have spaces.
Note: The above requires input to be split, by, commas.
Usage
!learn name response
Examples
!learn newcommand Response to custom command created.
Slash command /learn
| Option | Type | Description |
|---|---|---|
commandname required | Text | The name of the custom command |
output required | Text | The output of the command, including any flags |
“If you think you're smart enough to teach me, then I'd recommend a job as a hot air balloon.”