AutoMod: automatic protection against spam and links
24/7 filters against spam, links, duplicate messages and walls of text.
What AutoMod does
AutoMod checks every message sent on your server and, when someone goes over a limit you define, deletes the message and applies the punishment you chose, with no moderator online.
When it triggers, it posts a notice in the channel (for example «⚠️ @user, Spam de mensajes») that deletes itself after 5 seconds to keep the chat clean.
Info
Members with the Administrator permission are never punished by AutoMod.The four filters
| Filter | What it counts | Example threshold |
|---|---|---|
| 🛡️ Anti-Spam (Frequency) | How many messages the same person sends within 10 seconds. | Threshold 5 → triggers on the fifth message in 10 s. |
| 🔗 Anti-Links | How many links (http:// or https://) they send within 10 seconds. | Threshold 1 → any link is punished. |
| 📏 Character Limit | The length of a single message. | Threshold 800 → messages longer than 800 characters. |
| ♊ Duplicate Messages | Identical messages (case-insensitive) within 10 seconds. | Threshold 3 → on the third repeated message. |
There can only be one rule per filter. Saving the same filter again updates the existing rule.
Available punishments
| Punishment | What happens |
|---|---|
| 🗑️ Delete Only | The message is deleted and the temporary notice appears in the channel. |
| ⚠️ Delete + Warn | Also, they get a DM explaining the punishment and a warn case is added to their history. |
| 🔇 Delete + Mute (Timeout) | Also, they are timed out for the minutes set in «Duration». |
| 🔨 Ban User | The message is deleted and the person is banned. |
Custom message (optional): replaces the automatic reason both in the channel notice and in the DM. For example: «Links are not allowed without staff permission».
Step-by-step setup from the dashboard
-
Open the AutoMod tab
Dashboard → your server → AutoMod in the left menu.
-
Pick the «Security Filter»
Anti-Spam, Anti-Links, Character Limit or Duplicate Messages.
-
Pick the «Automatic Punishment»
If you choose Mute, fill in Duration (Minutes).
-
Set the «Sensitivity (Threshold)»
The number at which the rule triggers (see the filters table).
-
Select «Immune Roles» (optional)
Hold Ctrl (Cmd on Mac) to select several. People with those roles are never punished by this rule: perfect for staff or a «Partner» role allowed to share links.
-
Click «Save Config»
The rule appears in the table below with a green dot. It works immediately.
If you are not logged in, you will sign in with Discord first and come straight back to this dashboard section.
To remove a rule, click the trash icon on its row. AutoMod is configured from the dashboard only; it has no commands.
Recommended setup
| Filter | Threshold | Punishment |
|---|---|---|
| Anti-Spam | 6 | Delete + Mute, 10 minutes |
| Anti-Links | 1 | Delete Only (with immune roles for staff) |
| Duplicate Messages | 3 | Delete + Warn |
| Character Limit | 1500 | Delete Only |
Tip
Start with soft thresholds and mild punishments. Tuning later beats banning members who were just excited and typing fast.Required permissions
What the bot needs
- Manage Messages (delete)
- Timeout Members (mute)
- Ban Members (ban)
- View Channels in the monitored channels
- Role above the members it punishes
What you need
- Manage Messages, Manage Server or Administrator to save rules in the dashboard
Troubleshooting
AutoMod does not punish anyone
Check the rule has a green dot, the person is not an administrator or holding an immune role, and the bot can see the channel.
It deletes the message but does not time out
That person's role is above Nekovilo's, or the bot lacks «Timeout Members».
Does it count Discord invite links?
It counts any link starting with http:// or https://, full invites included (https://discord.gg/...).