How to stop spam and raids on Discord with automod
Block spam, bad words and links, and catch raids, with every action in your log channel.
Discord has its own AutoMod, but setting up the rules by hand takes a while. LoggerBot's /automod sets them up for you: spam, mention spam, blocked words and links. Discord blocks the message and posts an alert in your log channel. Anti-raid watches for a wave of new members who all start talking at once.
What you can turn on
- Spam — Discord’s own spam filter.
- Mention spam — messages that mention too many members at once.
- Blocked words — the words you add with /automod badwords.
- Links — Discord invites only, all links, or all links except the sites you allow.
- Anti-raid — when lots of new members start talking within seconds: alert only, time them out or kick them. You can also set a minimum account age.
Set it up
- 1Give LoggerBot the Manage Server permission. Discord needs it to let a bot create AutoMod rules.
- 2Pick the channel for alerts with
/automod log-channel. - 3Turn on what you want:
/automod badwords,/automod links,/automod anti-raid. - 4Run
/automod native enabled:True. LoggerBot creates the rules in Discord's AutoMod. Run it again after you change a setting. - 5Keep your staff out of it with
/automod exempt-roleand/automod exempt-channel.
How it works
The rules run on Discord's side, so a message is blocked before anyone sees it. You'll find them under Server Settings → AutoMod, named “LoggerBot spam”, “LoggerBot links” and so on. Rules you made yourself are never touched.
Blocked words, links and mention spam can also time the member out. /automod status shows what is switched on.
Frequently asked questions
Will it block my moderators?
Not if you exempt their role with /automod exempt-role.
Where do the alerts go?
To the channel you set with /automod log-channel, or your main log channel if you didn’t set one.
Is automod free?
Yes.
Related guides
Turn on automod in a few commands
Spam, bad words, links and raids, with every alert in your log channel. Free.