Custom Commands
Build your own slash commands, event triggers and schedules with actions, conditions and your own storage - without coding.
Purpose: With Custom Commands you create three kinds of entries in one shared editor: slash commands (they appear as /command in Discord), event triggers (they run automatically on messages, joins, leaves or reactions) and schedules (they run once or repeatedly on a timetable). For all three you build the same action chain below from actions and conditions - reply, send an embed, assign roles, store values, check conditions and more. Placeholders give you access to users, dates, options, variables and stored values. The dashboard has three areas: Commands, Variables and Databases.
The three areas#
- Commands – List and editor of your entries. At the top you pick the type (slash command, event trigger or schedule); below you set the name, type-specific fields and the action chain.
- Variables – Server-wide values (guild variables), separate from the per-user store.
- Databases – Per-member values such as
balanceorwins, used via{db:schluessel}.
The three types#
- Slash command – Registers with Discord as
/commandafter saving. Fields: name (only a–z, 0–9,-and_, max. 32 characters), description and options (parameters). - Event trigger – Runs automatically when an event occurs - not as a slash command. The name is just a display name and is not bound to Discord's naming rules.
- Schedule – Runs once at a point in time, on an interval, or every day or week at a fixed time of day. The name is just a display name.
In all three cases the same action chain is built below: actions, conditions (if / else) and placeholders.
Event triggers#
- Keyword - reacts to words in messages. Separate multiple keywords with commas; the match mode is configurable: contains, exact or starts with.
- Regex - reacts to a regular expression pattern. Invalid patterns simply never fire.
- Member joined - fires when a member joins the server.
- Member left - fires when a member leaves the server.
- Reaction - fires on a specific emoji reaction. Custom emojis may come from any server: enter the emoji ID or paste
<:name:id>.
- Channels – Optional: only fire in these channels. Leave empty = all channels.
- Cooldown – Wait time in milliseconds between two firings. Default 5000 ms (5 s), 0 = no cooldown.
- Ignore bots – On by default: messages from bots do not fire the trigger (loop protection).
Triggers do not appear as slash commands in Discord - they run in the background only.
Schedules#
- Once - runs the actions at a fixed date and time.
- Repeating - runs the actions on an interval; 1 to 10080 minutes (max. 7 days).
- Daily - runs every day at the configured time, e.g. every evening at 20:00.
- Weekly - runs every week on the selected weekday at the configured time.
Times for Daily and Weekly apply in the selected time zone (default: Europe/Berlin) - not in UTC, even though the server runs in UTC.
Schedules are checked roughly every 30 seconds - execution therefore happens within about 30 seconds of the scheduled time.
The Test button in the overview (lightning icon next to edit/delete) runs the flow immediately without changing the schedule: the bot executes the saved version on its next tick (within ~30 seconds) and writes the result below the entry. A disabled schedule can be tested too.
Actions#
- Messages - reply, send an embed, send a message to a channel, send an embed to a channel (with optional delete after x seconds, 0 = never), send a direct message (to the triggering member, a fixed user ID or an option), add a reaction (Unicode emoji, emoji ID or
<:name:id>- from other servers too). Send an embed and send an embed to a channel share the same full embed builder: author (with icon), title, description, color, up to 25 fields (optionally inline), image, thumbnail, footer (with icon) and timestamp - with placeholders via@. - Roles - add role, remove role.
- Moderation - lock channel, unlock channel. With no channel selected, the current channel is locked or unlocked.
- Database & economy - read a database value (per user), change a database value (+/-), set a database value, show a leaderboard.
- Guild variables - read, change (+/-), set.
- Games & random - random number.
- Logic - condition (if / else), wait (seconds), set variable, stop.
A condition can check option values, variables, database values, guild variables, the executor's ID, role membership and the current channel.
Placeholders & rules#
{user}- user mention;{user_id}- user ID- Type
@in a text field: placeholders, roles and channels can be attached there as a mention (<@&id>or<#id>). {date}/{time}- date and time{option:name}- value of an option{var:name}- custom variable{db:schluessel}- per-user database value{gvar:name}- guild variable (server-wide)
Slash command and option names consist of a–z, 0–9, - and _ (max. 32 characters). The display name of triggers and schedules is free-form. Variable and database keys consist of a–z, A–Z, 0–9, - and _ (max. 32 characters).
The data is stored in data/custom-commands.json, variables in data/custom-commands-guildvars.json and per-user values in data/custom-commands-db.json.
Dashboard settings#
| Setting | Type | Meaning |
|---|---|---|
| Custom commands module enabled | Toggle | Turns the module on or off. Off: custom commands are disabled on the server. |
Pitfalls#
- Slash commands are only registered with Discord after saving - shortly afterwards they appear as slash commands.
- Triggers and schedules do not appear as slash commands: triggers run in the background, schedules are checked roughly every 30 seconds.
- Bots do not fire triggers (loop protection, on by default).
- Option types are text, integer, yes/no, user, channel, role, user/role, number and file.