-
Notifications
You must be signed in to change notification settings - Fork 603
Creating Custom Commands
Few examples:
Note: This assumes that you have >
set as your cmd_prefix and .
set as your customcmd prefix. If you have changed your prefixes in the config, use those accordingly.
-
>add
- Brings up a menu that you can navigate to add custom commands. -
>remove
- Brings up a menu that you can navigate to remove custom commands.
Custom commands can be made to have one response or multiple responses. Multiple responses for the same command is especially useful if you want to neatly organize similar custom commands so everything is grouped. Additionally, you can randomly get one of the responses by calling the main command.
-
>customcmds
- small view, just shows the command and response names.-
>customcmds <command>
- view just this command and its response names. -
>customcmds gist
- posts to Gist and gets the link to it rather than posting it in the chat (useful if your list is really long)
-
-
>customcmds long
- large view, shows you everything including the responses.-
>customcmds long <command>
- view just this command and it's response names and responses. -
>customcmds long gist
- posts it to Gist and retrieves the link like with customcmds gist.
-
-
>customcmds color <hex_value>
- change the customcmd default embed color.-
>customcmds color
- set it to have no color.
-
-
>customcmds embed
- toggle auto-embedding of images/gifs.
-
>add <command> <response>
- Now, if you do.<command>
you will receive<response>
. >remove <command>
-
.<command>
- post the<response>
for this command. (images/gifs auto embed)
Example: >add nervous http://i.imgur.com/K9gMjWo.gifv
Then, doing .nervous
will output this imgur link (images and gifs will auto embed)
Custom commands/responses with multiple words: If anything you are adding/removing is more than one word, you must put each part in quotes. Example: >add "copypasta" "I identify as an attack helicopter."
Especially useful if you want to neatly organize similar custom commands so everything is grouped. Additionally, you can randomly get one of the responses by calling the main command.
Note: If you made a simple command via the way above, you cannot add more responses to it. Use this new method to add a command where you can add multiple responses:
-
>add <command> <response_name> <response>
- add one response to this command labeled<response_name>
-
>remove <command> <response_name>
- remove this specific response -
>remove <command>
- remove this command and all its responses entirely
Invoke a specific response with .<command> <response_name>
or get a random response for that command with .<command>
Example:
>add kaguya present http://i.imgur.com/7Px7EZx.png
Then you can add another to the kaguya
command: >add kaguya yes http://i.imgur.com/y0yAp1j.png
Now, the kaguya command has two responses: One labeled present
and one labeled yes
.kaguya present
would give you that specific link but .kaguya
would randomly give you one of the two you added to the kaguya command.
Custom commands/responses with multiple words: Similar to above, you need to put all three parts in quotes: >add "kaguya" "how cute" "http://i.imgur.com/LtdE1zW.jpg"