Automations
When this happens, if this is true, do this" rules for your server, with 41 triggers from Discord and other modules, conditions, 28 actions, custom slash commands, buttons and menus, schedules, webhooks, counters, a test mode and a log of every run.
Automations lets you build your own rules for the server without writing code: when something happens, if some conditions are met, then DotBot does one or more actions. Reply to keywords, give roles on reactions, publish announcements, lock a channel at night, thank boosters, log deleted messages, create your own /commands and much more.
Automations react to Discord events (messages, reactions, roles, voice, members joining or leaving…) and to events from other DotBot modules (level ups, giveaway wins, tickets, forms, polls, free games…). They can also run at a time, from a button, a menu, a slash command or a webhook.
Tip
To simply reply when someone writes a keyword, Auto Responses is quicker to set up: keywords, a reply and a cooldown, without triggers or conditions.
How it works
Every automation has three parts:
- When… (the trigger): what has to happen, for example Sends a message.
- Only if… (conditions, optional): filters like "in these channels", "has this role" or "message contains". By default all must be met; you can choose any, and invert any condition with NOT.
- Then… (actions): what DotBot does, in order, for example Reply with a message and Give roles.
Note
DotBot never reacts to its own messages, and a safeguard stops chains that repeat too quickly (for example two automations giving and removing a role in a loop). An automation that loops is turned off and marked so you can fix it.
Quick start
- Open Automations and click New automation, or pick a template like Keyword reply.
- In When…, choose Sends a message.
- In Only if…, add Message contains the exact word with
rules. - In Then…, add Reply with a message and write the reply.
- Click Save automation and type "rules" in your server.
Use the Test panel to check which conditions would be met and how messages would look, without sending anything.
Templates
| Template | What it does |
|---|---|
| Publish announcements | Publishes every new message in your announcement channels (also from bots) so following servers get it. Discord allows 10 per hour per channel; the rest stay in the channel without being published, and the run history says so. |
| React to images | Adds ❤️ to messages with attachments in the channels you choose. |
| Forum welcome | Greets every new forum post. |
| Keyword reply | Replies when a message has a word. |
| Auto thread | Opens a thread on every message in a channel. |
| Deleted message log | Copies deleted messages, with their attachments, to a staff channel. |
| Voice channel role | Gives a role to anyone who joins a voice channel. |
| /rules command | A /rules command that shows the rules privately. |
| Boost thank-you | Thanks members who boost. |
| Block links | Deletes messages with links from members without the roles you choose and tells them why by DM. |
| Verification button | A Verify button (key verify) gives the member role. Use it with Verification message, which posts the button. |
| Verification message | An admin-only /verify-setup command that posts a message with the Verify button in the channel where it's used. |
| Newcomer role for a day | Gives new members a role that is removed after 24 hours. |
| 18+ channels filter | Deletes messages in 18+ channels from members without the 18+ role and tells them why. |
| Level reward | Gives a role and congratulates members at level 10. |
| Giveaway winner DM | Sends winners a DM with the prize and a link to the giveaway. |
| Thank the inviter | Announces who invited each new member and how many invites they have. |
| Ticket greeting | Posts a message in every new ticket. To ping the staff, add their role with Mention a role… (see Mentions). |
| Close a channel at night | Locks a channel every night at 23:00. Duplicate it with Unlock the channel to open it in the morning. |
| Activity points | Adds a point to each member for chatting (at most once a minute), shown with {counter:points}. |
When a template needs something from you (a channel, a role), the missing parts are marked in amber.
Your automations
The list shows each automation with its trigger and whether it's on, with search, folders and filters (On, Off, With problems). From each one you can edit, duplicate, turn it on or off or delete it. Each change is saved on its own, so several people can edit different automations at the same time.
Export copies a code (starting with DOTBOT-AUTO:) and Import pastes it in this or any other server. A code can carry up to 80 automations, and they're imported all together or not at all.
You can have up to 80 automations per server.
If a saved automation can't be read (for example after it was edited outside the dashboard), it doesn't run and a notice above the list says so. It's kept, so editing your other automations never deletes it, until you click Discard.
Triggers
| Group | Triggers |
|---|---|
| Messages | Sends a message, Edits a message, A message is deleted ({user} is the message's author, whoever deleted it), Adds a reaction (optionally only one emoji), Creates a thread or post. |
| Members | Joins the server, Leaves the server, Gets a role, Loses a role (optionally only some roles), Joins voice, Leaves voice, Boosts the server, Changes nickname. |
| Moderation | Is timed out, Is kicked, Is banned. These read the audit log, so {executor} and {reason} tell who did it and why. |
| Interactions | Uses a slash command (your own command), Clicks a button, Picks in a menu (optionally only some options). |
| Other modules | Levels up (optionally at some levels), Birthday, Saves their birthday, Joins with an invite, Wins a giveaway, Opens a ticket, Submits a form, Form reviewed, Unlocks an achievement, Makes a suggestion, Suggestion status changes, Message reaches a starboard, Buys in the shop, Uses an item, Wins a minigame, Signs up for an event, Attends an event, Votes in a poll, A poll closes, A free game is announced. |
| Other | At a time (at chosen times on chosen days, or every 5 minutes to 1 day, counted from midnight UTC) and Webhook (a URL that starts the automation). To run once a week, choose At certain times and tick a single day. |
Triggers from other modules need that module turned on. At a time, Webhook, A poll closes and A free game is announced have no member behind them, so pick a channel for messages and use actions that don't need a member.
Custom slash commands
With Uses a slash command, you create a real Discord command:
| Setting | What it does |
|---|---|
| Command name | Lowercase letters, numbers, - and _. It can't be the name of a DotBot command or of a slash command made with Custom Commands. |
| Description | Shown in Discord. |
| Who can use it | Everyone, or members with a permission (Manage Messages, Timeout Members, Kick, Ban, Manage Roles, Manage Channels, Manage Server) or administrators only. Members without it don't see the command. |
| Options | Up to 10: text, whole number, number, yes/no, user, channel or role, optionally required. Use them as {option.name}; a user option can be the member the actions apply to (for example /verify user). |
The command appears in Discord a few seconds after saving.
Tip
For commands with more options, fixed values, right-click commands, forms, permissions and buttons with their own actions, use Custom Commands. Counters are shared between both modules.
Buttons and menus
Buttons and menus are added in the Send a message action of one automation. Every button (except links) and menu has a key: create another automation with Clicks a button or Picks in a menu and the same key to decide what happens when it's used.
Webhook
Webhook gives you a secret URL. Send a POST request with JSON to it, and each field becomes a variable: {hook.name}, {hook.status}… (one level of nesting, like {hook.user_name}). Anyone with the URL can start the automation, so keep it secret. The URL only works while the automation and the Automations module are on.
Conditions
Up to 20 conditions per automation.
| Group | Conditions |
|---|---|
| Where | In specific channels or categories (threads follow their parent), In an announcement channel, Within a schedule (hours and days in a time zone; can cross midnight). |
| Who | Has any of these roles, Has none of these roles, Is a specific user, Account age (newer or older than), Time in the server, Boosts the server. |
| Message | Contains (even inside another word), Contains the exact word, Starts with, Matches a pattern (regex, like JavaScript's but without back-references, look-arounds or nested repetitions such as (a+)+), Has a link, Has a Discord invite, Mentions someone, Has attachments, Is a reply, Isn't a reply, Longer than, Shorter than. Not case- or accent-sensitive. |
| Other | Random chance (a percentage of the times), Variable (compares any variable, like {level} or {counter:points}, with a value; numbers compare as numbers). |
Actions
Up to 15 actions per automation (and 10 inside each If… / Otherwise… branch), run in order.
| Group | Actions |
|---|---|
| Messages | Send a message (reply, same channel, a specific channel, DM, or a private or visible reply to the command, button or menu; plain text or a colored box; up to 5 buttons and a menu; optionally deleted after some seconds), Copy the message to another channel, Create a thread or post, Add a reaction, Pin the message, Publish the message (announcement channels), Delete the message, Edit the message (DotBot's own message whose button or menu was used). |
| Members | Give roles (optionally temporary, removed automatically after up to 30 days), Remove roles, Change the nickname, Move to a voice channel, Disconnect from voice. Roles with powerful permissions (like Administrator, Manage Server, Manage Roles, Kick or Ban Members) can't be given or removed by automations. |
| Moderation | Time out (1 minute to 28 days), Warn (added to their Moderation record, which can trigger its automatic punishments), Kick, Ban (optionally deleting recent messages). The reason is saved in the audit log. |
| Channels | Lock the channel (DotBot keeps its own permission to write there, so it can still post a notice), Unlock the channel, Set slow mode. |
| Flow | Wait (up to 15 minutes, survives restarts), If… / Otherwise… (check conditions at that point and run different actions), Stop. |
| Counters and integrations | Update a counter (add, subtract, set or reset a counter for the user or the server), Give XP (Levels; level roles update right away, but there's no level-up message and it doesn't trigger Levels up), Give coins (Economy & Shop), Remove roles from everyone (up to 500 members each time), Send a webhook (to Zapier, Make, n8n, a Discord webhook or any URL). |
Counters
Counters are numbers kept per member or for the whole server. The same name in several automations shares the counter. Show them in messages with {counter:name} (the member's), {server_counter:name} or {counter_top:name} (a leaderboard), and compare them with the Variable condition.
Options
| Setting | What it does |
|---|---|
| Cooldown | After running, it won't run again until this time has passed, for each user, each channel or the whole server. 0 = no cooldown. Cooldowns survive restarts. |
| Include bot actions | By default, messages and actions from bots and webhooks don't trigger it. DotBot's own messages only trigger automations that don't send anything (publish, react, pin, wait), so they can't loop. |
| Folder | Groups automations in the list. |
Variables
Variables work in messages, nicknames, thread names, reasons and webhook texts. The editor lists the ones available for each trigger.
| Variables | Value |
|---|---|
{user}, {user_name}, {user_id}, {user_avatar}, {user_created}, {user_joined} | The member who triggered it. |
{channel}, {server}, {member_count}, {server_boosts} | Where it happened and the server. |
{content}, {message_link}, {emoji}, {role}, {selected} | The message, the reaction, the role, the menu options picked. |
{executor}, {reason}, {old_value}, {new_value} | Who did it, why, and what changed (moderation and edit triggers). |
{option.name}, {hook.name} | Slash command options and webhook fields. |
{random:a|b|c}, {countdown:2026-12-25} | One option at random; time left until a date (UTC). |
{counter:name}, {server_counter:name}, {counter_top:name} | Counters. |
| Module variables | Like {level}, {prize}, {inviter}, {ticket_number}, {form_status} (accepted or rejected), {achievement}, {item}, {event}, {poll_winner}, {free_game} or {star_count}, depending on the trigger. |
Mentions
Messages only notify:
- the member who triggered the automation (for example with
{user}), and - the members and roles you write in the message yourself. Use Mention a role… under the message to add a role.
A role is only notified if Allow anyone to @mention this role is on in its settings; otherwise Health warns you. Mentions that arrive inside a variable (like {content}, {option.name} or {hook.name}) never notify anyone, and neither do @everyone and @here.
Test, activity and health
- Test: runs the automation with example data and your own account, showing which conditions are met, which branch runs and how messages would look. Nothing is sent or changed.
- Activity: the last 50 runs of each automation (kept for 30 days), with who triggered it, where, and every action's result: ✓ done, – skipped (for example the message was already pinned) or ✗ failed with the reason. Recent activity shows the latest runs of all automations.
- Health: tells you when DotBot can't do everything an automation asks: a missing permission, a deleted channel or role, a role above DotBot's or one with powerful permissions, a mentioned role that can't be mentioned, a module that's off, the Message Content intent off (so text conditions never match), or no View Audit Log permission.
An automation that runs more than 60 times in a minute is throttled, and so is the server once its automations add up to 60 runs in a minute or 5,000 in a day. If a flood of long messages takes too long to check against your conditions, messages stop triggering automations for a few seconds. The activity shows the reason in each of these cases.
Limits
| Limit | Value |
|---|---|
| Automations per server | 80 |
| Conditions | 20 |
| Actions | 15 (10 per branch) |
| Slash command options | 10 |
| Buttons / menu options per message | 5 / 25 |
| Wait | 15 minutes |
| Temporary roles | up to 30 days |
| Time out | 1 minute to 28 days |
| Remove roles from everyone | 500 members per run |
| Runs | 60 per minute per automation and per server, 5,000 per day per server; activity kept 30 days |
Permissions DotBot needs
Each action needs its matching permission: Send Messages and Embed Links to send, Manage Messages to delete, pin or publish, Add Reactions, Create Public Threads, Manage Roles (with DotBot's role above the roles), Manage Nicknames, Timeout Members, Kick Members, Ban Members, Move Members, and Manage Channels to lock channels or set slow mode. View Audit Log is needed for the moderation triggers and to notice role changes reliably. With your own bot, the Message Content intent is needed for text conditions and {content}.
FAQ
Why didn't my automation run?
Open its Activity to see recent runs, and Health for problems. Common causes: a condition wasn't met (use Test), a cooldown is active, the trigger comes from a module that's off, the message came from a bot (turn on Include bot actions), or DotBot can't read message text.
Can I create my own slash commands?
Yes. Use the Uses a slash command trigger, give it a name, a description, who can use it and up to 10 options. It appears in Discord a few seconds after saving.
How do I make a button that gives a role?
Create an automation that sends a message with a button and a key, for example verify. Then create another one with Clicks a button, the key verify, and the Give roles action. The Verification message template does the first part (an admin-only /verify-setup command that posts the button) and Verification button the second.
Can an automation run at a specific time?
Yes. Use the At a time trigger with times and days in your time zone, or every X minutes. For example, the Close a channel at night template locks a channel every night at 23:00.
Can I give a role only for a while?
Yes. In Give roles, set how long to keep it (up to 30 days). DotBot removes it automatically, even after a restart.
Why was my automation turned off?
It was running over and over, probably because its actions were triggering it again (for example giving and removing a role in a loop, or replying to a bot that replies back). Fix the loop and turn it on again.
Can I log deleted messages?
Yes. Use A message is deleted with Copy the message to another channel, or start from the Deleted message log template. DotBot keeps a copy of each message for 24 hours to be able to do this, only while the server has an automation with that trigger.
Can I connect automations to Zapier, Make or n8n?
Yes. Send a webhook sends the event to any URL, and the Webhook trigger lets other services start an automation.
Can I keep points or counts for members?
Yes. Use Update a counter to add or subtract, show it with {counter:name}, rank members with {counter_top:name}, and compare it with the Variable condition.
Can I copy automations to another server?
Yes. Export copies a code; paste it in Import on the other server. Check channels and roles afterwards, since they belong to the first server.