- discord’s own automod rules, which drain writes and keeps in order for you. they block a message before anybody sees it, and they keep working while drain is offline.
- four checks drain runs itself, for things discord’s rules can’t see. drain deletes those messages just after they’re sent.
setting it up
- on the dashboard
- in discord
open the dashboard, pick your server and go to automod. switch on the modules you want, pick the punishment and the log channel, add exempt roles and channels, and save. drain writes discord’s rules for you as soon as you do.
the modules
blocked by discord
abuse and nsfw share one of discord’s preset rules, because a server can only have one.
deleted by drain
mentions, emoji and links don’t count toward
caps.
changing one module
warning people it catches
automod blocks on its own, but it can also give a warning, so repeat offenders are dealt with by,mod warnaction without a moderator typing anything.
each catch becomes a normal warning and case, with drain as the moderator: it shows in ,mod warns, goes to your mod log, and the person gets the same dm as any warning. somebody who trips automod over and over in a burst gets one warning a minute, so a spam burst can’t jump every warnaction step at once. discord’s own rules count too, as long as they’re rules drain set up. ,automod warn off stops it.
who’s left alone
by drain’s four checks:- the server owner, and anybody with manage server
- exempt roles and exempt channels
- bots and webhooks
every command
discord’s limits
- a server can have 6 keyword rules, and one each of spam, mention spam and preset rules. if one of those last three already exists, drain takes it over rather than failing.
disableturns a taken-over rule off instead of deleting it - one rule holds at most 20 exempt roles and 50 exempt channels

