Astro · Step by step
Turn on AutoMod without deleting normal messages
Astro removes spam, scams, server invites and blocked words on its own, without catching ordinary chat by mistake.
AutoMod reads every message and removes the ones that break a filter you switched on. Each filter can also warn, mute, kick or ban. This guide turns on the filters that almost every server wants and shows you how to keep them from removing normal messages. The Links filter needs the most care, so read step 5 before you touch it.
Before you start
- A moderation log is set, so you can see what AutoMod removes and why: Set up the moderation log and event log.
- Have a second Discord account, or a friend without staff roles, to test with. AutoMod never filters anyone who can delete other people's messages, so you cannot test it on yourself.
Steps
1. Open the AutoMod page
On the dashboard, open your server and click AutoMod in the sidebar, under Moderation. Every filter starts off.
2. Set exemptions first
Scroll to the Exemptions card at the bottom. Under Exempt roles, add roles that should never be filtered (for example your bots role or a trusted role). Under Exempt channels, add channels AutoMod should ignore, like a staff chat or a #memes channel where links are fine.
Anyone with Manage Messages or Administrator is already exempt.
3. Switch on the safe filters
In the Filters card, switch on:
- Spam (six messages in five seconds)
- Invite links (links to other Discord servers)
- Mass mentions (the Mention limit below it decides how many; 5 is the default)
In the More filters card, switch on Scams and hacked accounts. It catches lookalike Discord and Steam links, free Nitro bait, and one message sent to three or more channels, which is what a hacked account does.
Click Save in the bar at the bottom.
4. Choose what each filter does
In What happens when a filter trips, each filter has a dropdown: Delete only, Delete and warn, Delete and timeout, Delete and kick or Delete and ban. The defaults are a 10 minute timeout for Spam, Mass mentions and Blocked words, and delete only for the rest.
Start gentle. Delete only or Delete and warn is a good first week. You can make it stricter once you have seen what it catches. Click Save.
5. Links: understand the allowed list before you switch it on
The Links filter has two modes, picked in the dropdown next to it:
| Mode | What it removes |
|---|---|
| Only links off the allowed list | Nothing at all while the Allowed domains list is empty. Once you add one domain, every link that is not on the list is removed. |
| Every link | Every link from every non-exempt member. |
So switching on Links with an empty list does nothing. The moment you add youtube.com, a link to twitch.tv is removed, because it is not on the list. Add every site your members normally share before you add the first one, or leave the filter off.
To build the list, go to Allowed domains, type a domain like youtube.com and press Enter. Subdomains are covered, so youtube.com also allows m.youtube.com. Do not type https:// or a path.
Discord's own links are always allowed and never need listing: links to a message or event in any server, uploaded files and images, and GIFs from the GIF picker. Server invites are handled by the Invite links filter, not this one.
6. Add blocked words (optional)
In the Blocked words card, type a word into Word list and press Enter. Then switch on Blocked words in the Filters card.
Matching is whole word, so blocking "slur" does not remove "slurry", and tricks like b.a.d or b a d are still caught. Leave Match inside other words off. If you turn it on, blocking "ass" also removes "class".
7. Decide where AutoMod reports and what members see
In AutoMod log and repeat offenders:
- AutoMod log: a channel for filter hits. Left empty, they go to your moderation log.
- Tell members why: on by default. The member sees a short note like "@name, slow down." that disappears after six seconds.
Click Save.
8. Test it
From your second account (no staff roles), send six quick messages in a row in a normal channel.
You see: the messages are removed, a short notice appears for six seconds, and an "AutoMod · Spam" card lands in your log with the member, the reason, the channel and the action taken.
Change it later
- Caps filter: switch on Excessive caps. It only acts on messages with at least 20 letters that are over 70% capitals, so short shouts like "LOL" are left alone. Both numbers can be changed next to it.
- Per-filter exemptions: click Exemptions next to any filter to exempt roles or channels from that filter only.
- Repeat offenders: in AutoMod log and repeat offenders, set Repeat offenders to Timeout, Kick or Ban, for example a 60 minute timeout after 3 hits in 10 minutes.
- More filters: Multi-user spam, Image spam, Stickers, Repeated text, Emoji spam, Protected pings, File types, Newlines, Headers, Message length and Ghost pings. Each has Options for its own message, log channel and exemptions.
If something goes wrong
- AutoMod is deleting every link. The Links filter is on and either set to Every link, or you added at least one domain to Allowed domains, so everything else is blocked. Add the sites your members use, switch the mode back to Only links off the allowed list, or turn Links off. Then Save.
- A normal message got deleted and I don't know why. Find the "AutoMod" card in your AutoMod log or moderation log. It names the filter and shows the message, for example "Link not on the allowlist (
twitch.tv)". - AutoMod does nothing when I test it. You are exempt because you can delete messages. Test from an account with no staff roles, in a channel that is not in Exempt channels.
- Members get muted instead of just having the message removed. Spam, Mass mentions and Blocked words default to a 10 minute timeout. Change the action to Delete only in What happens when a filter trips.
- A filter warns people but the warning ladder never kicks in. Warnings made by AutoMod are saved as cases but do not run your warning ladder or auto punish on their own. The next warning a moderator gives with
/warncounts them.
NextPunish repeat offenders automatically
Stuck on a step? Open a ticket in the Cordyx Discord and say which step you are on.