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:

🌊 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:

✉️ 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:

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:

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:


🔗 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:

  1. Configure the Automod log channel.
  2. Add ignored staff roles.
  3. Add one simple rule, such as invite filter or mass mentions.
  4. Test the rule with a controlled message.
  5. Add stricter rules gradually.

💡 Best practices