Custom commands
Help › Custom commands › Custom commands
Custom commands
Custom commands let you make the bot reply, post, or take action in ways that fit your server. They're good for FAQs, rules reminders, simple games, and timed announcements.
Creating one
- Open Custom Commands → Commands and click Create a new custom command.
- Choose a trigger type and enter the trigger text.
- Write the response. Plain text works, and you can use templates for anything dynamic.
- Optionally limit it to certain channels or roles, then save.
Trigger types
| Type | Runs when |
|---|---|
| Command | A message starts with the prefix plus the trigger, like -rules. |
| Starts with | A message begins with the trigger text. |
| Contains | The trigger text appears anywhere in a message. |
| Exact match | The whole message equals the trigger text. |
| Regex | A message matches a regular expression. |
| Reaction | Someone adds or removes a reaction. |
| Interval / Cron | On a timer, such as every 6 hours or every Monday at 9:00, posting in a channel you choose. |
| Component / Modal | Someone presses a button, uses a select menu, or submits a form the bot posted. |
| None | Only when another custom command runs it. |
A simple example
Trigger type Command, trigger hello, response:
Hi {{.User.Mention}}, welcome to {{.Guild.Name}}!
Typing -hello then gets a personal greeting.
Limits
Each server can have up to 100 custom commands. A single response can be up to 10,000 characters.
Useful commands
-customcommands | Lists custom commands, or shows one by ID or trigger. |
-diagnosecctriggers <text> | Shows which custom commands would fire on some text, and points out common mistakes. Great when a command isn't triggering. |