Overlord's Gatekeeper Theme
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

  1. Open Custom Commands → Commands and click Create a new custom command.
  2. Choose a trigger type and enter the trigger text.
  3. Write the response. Plain text works, and you can use templates for anything dynamic.
  4. Optionally limit it to certain channels or roles, then save.

Trigger types

TypeRuns when
CommandA message starts with the prefix plus the trigger, like -rules.
Starts withA message begins with the trigger text.
ContainsThe trigger text appears anywhere in a message.
Exact matchThe whole message equals the trigger text.
RegexA message matches a regular expression.
ReactionSomeone adds or removes a reaction.
Interval / CronOn a timer, such as every 6 hours or every Monday at 9:00, posting in a channel you choose.
Component / ModalSomeone presses a button, uses a select menu, or submits a form the bot posted.
NoneOnly 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

-customcommandsLists 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.

← LoggingTemplates →