Automod

Stops spam, floods, blocked words, links you didn't allow, mass mentions and invite links.

Keroku needsManage MessagesManage ServerTimeout Members

Set it up

  1. Open Modules, then Automod. Every rule starts off.
  2. Turn on Log only so nothing is removed while you tune.
  3. Turn on the rules you want and set their limits.
  4. Add exempt roles and channels.
  5. Read the modlog for a few days, then turn Log only off.

Rules

RuleFires whenDefault
SpamToo many messages too fast6 messages in 5 seconds
DuplicatesThe same text again and again. Case and spacing are ignored.3 times in 30 seconds
Link allowlistA link to a host not on your listUp to 50 domains
Blocked wordsA listed word or patternUp to 200 entries, 20 patterns
CapsMostly capital letters70 percent of at least 10 letters
ZalgoStacked marks on lettersFour in a row on one letter
EmojiToo many emoji10
Mention limitToo many unique mentions, through Discord AutoModOff
Invite linksdiscord.gg, discord.com/invite and dsc.gg links, through Discord AutoModOff

Who is checked

Members with Manage Messages, administrators and the owner are never checked, and neither are bots, exempt roles (up to 25) or exempt channels (up to 50).

Blocked word kinds

Fancy letters, accents, look-alike letters, invisible characters, leetspeak like b4dw0rd, stretched letters like baaaad and spaced out letters like b a d are all read as plain text first.

  • word matches the whole word. ass catches "you ass" but not "class".
  • word* matches any word starting with it. scam* catches "scammer".
  • *word* matches anywhere, ignoring spaces and symbols. Use it sparingly, it is the one that can hit innocent words.
  • Patterns are regular expressions in RE2 syntax, checked against the message as sent. Add (?i) to ignore case.

What happens on a hit

The message is deleted. With a timeout set, the member is also timed out with a case. Without one, the modlog gets Message removed, at most once a minute per member.

Log only

Every rule still runs but nothing is deleted and nobody is timed out. Each hit posts Message would be removed instead. Mention and invite rules can only block, so they come down while Log only is on and go back up after.

Fixes