Custom commands allow you to create your own commands, the custom command system in YAGPDB is somewhat complex and can be used for some advanced stuff. It is still somewhat limited in what it can do and for the the more complex and advanced operations, you should really think about making a standalone bot for it.
To create your first custom command, go to the control panel and select your server. There you click on Commands and Custom Commands.
Command: With this trigger, the message has to start with the prefix for your server (
- by default) followed by the trigger
Starts with: When a message starts with your trigger
Contains: When a message contains your trigger
Exact match: When the entire message equals your trigger
Regex: This trigger allows you to use a regex pattern. (Refer to the
Regex page for help)
As you might have seen there is an option called Case sensitive. This option makes your trigger case sensitive. The trigger heLLo with case sensitivity on will only trigger if somebody says
heLLo but not if someone says
If you wish to do anything more then a "Type in a command" -> "Make the bot say something. Such as assigning people roles, getting information on the person calling the command, writing messages in other channels, and many other. It is recommended that you check out this page:
You can restrict or block custom commands to specific roles or channels. For this you have to select the corresponding checkbox and select the roles/channels you want it to apply too.
With custom commands there are some limitations:
You can't create more than 100 custom commands (250 with YAGPDB Premium)
You can't execute more than five commands from a custom command
Direct Messages can be only sent with a side note from which server they're coming
Custom Command responses can't be longer than 2000 characters (this is a limitation by discord)
A Custom command itself can't be longer than 3000 characters
Custom Commands are limited to 5 userArg calls, 5 exec/execAdmin functions, 10 template function calls and 3 sendMessage calls
You can find multiple examples on the YAGPDB Community & Support Server or in this list (with explanations):