Automod
Automod helps protect your Discord server by automatically scanning messages and applying rules.
You can configure Automod from the YAWBDB panel. Each rule has its own trigger, configuration, action, and enabled/disabled state.
🔍 What Automod can detect
YAWBDB supports multiple rule types.
🤬 Bad words
Block specific words or regular expression patterns.
Useful for:
- Slurs
- Offensive terms
- Known scam phrases
- Custom server-specific banned words
🌊 Spam messages
Detect when a user sends too many messages in a short time window.
Useful for reducing flood spam.
📣 Mass mentions
Detect messages with too many user or role mentions.
@everyone and @here are also counted.
🔗 Link filter
Block or allow links based on domains.
Modes include:
- Whitelist mode — only listed domains are allowed
- Blacklist mode — listed domains are blocked
✉️ Invite filter
Block Discord invite links.
Useful if you do not want members advertising other servers.
🔠 Caps spam
Detect messages with too many uppercase letters.
A minimum message length prevents very short messages from being flagged unfairly.
🆕 New account
Detect messages from accounts younger than a configured number of days.
This can help against suspicious new accounts.
🎣 Anti-Scam
Catch the classic Discord scams automatically: fake free Nitro and gift links, Steam giveaway bait, crypto/wallet-drainer messages and lookalike domains (dlscord, discord-gift, steamcommunity.ru and friends).
A curated built-in detection list is always active — no setup needed. You can extend it with your own patterns (plain text or regex, one per line) for scams specific to your community.
🗳️ Anti-Poll
Block native Discord polls. By default polls are removed everywhere; add channel IDs to the allow-list to keep polls possible in specific channels only.
🎬 Actions
Each rule can apply an action.
Available actions include:
- Delete the message
- Warn the member
- Mute the member
- Kick the member
- Ban the member
- Flag for review
Moderation actions can be recorded in the member's sanction history with Automod as the source.
🙈 Ignored roles and channels
You can configure roles and channels that Automod should ignore.
Examples:
- Ignore moderators
- Ignore staff-only channels
- Ignore bot command channels
- Ignore trusted roles
Use ignored roles carefully. Anyone with an ignored role can bypass Automod scanning.
📋 Logs
Automod can post logs to a configured log channel.
Logs help staff understand what rule triggered and what action was applied.
A log may include:
- Rule type
- Target member
- Message content or summary
- Action taken
- Channel
- Time
🔗 Automod and Leveling
If Automod deletes a message, YAWBDB can prevent that message from giving XP.
If Automod only warns the user and keeps the message, XP may still be awarded depending on the configured behavior.
🔗 Automod and Moderation
Automod sanctions are stored as moderation history entries.
This means staff can review automatic warnings, mutes, kicks, or bans later from the panel.
👍 Recommended setup
For a new server:
- Configure the Automod log channel.
- Add ignored staff roles.
- Add one simple rule, such as invite filter or mass mentions.
- Test the rule with a controlled message.
- Add stricter rules gradually.
💡 Best practices
- Start with warning or delete actions before using kicks or bans.
- Use strict rules only when you are confident they will not create false positives.
- Keep a log channel so staff can audit automatic actions.
- Review Automod history regularly.
- Avoid overusing broad regex patterns unless you test them carefully.