Antinuke & antiraid
Antinuke stops someone with permissions from wrecking the server, and antiraid stops floods of new accounts. Filters and honeypots delete spam as it arrives.
Antinuke
Antinuke watches Discord's audit log. If someone bans, kicks, or deletes channels or roles faster than you allow, they're punished straight away and the owner gets a DM. Only the server owner and the antinuke admins they pick (,antinuke admin) can change it.
,antinuke ban on --threshold 3 --do ban
| Module | Watches |
|---|---|
ban | Mass bans (add --command on to count bans done through bot commands too) |
kick | Mass kicks (--command on works here too) |
role | Mass role deletes |
channel | Mass channel creates and deletes |
emoji | Mass emoji deletes |
webhook | Mass webhook creation |
vanity | Anyone changing the vanity URL (no threshold) |
botadd | New bots that aren't whitelisted (the bot is kicked) |
permissions | Roles given dangerous permissions (,antinuke permissions grant administrator) |
--thresholdis how many actions in a minute are allowed (default 3, up to 50).--dois the punishment:ban(default),kick,jail,stripstafforwarn.- ,antinuke whitelist trusts a member or bot completely. The owner and the bot itself are never counted.
- ,antinuke config shows everything;
,antinuke ban offturns a module off.
Antiraid
| Command | Catches |
|---|---|
,antiraid massjoin on --threshold 10 --do ban --lock true --punish true | Too many joins within 10 seconds: the server goes into raid mode. --lock locks channels, --punish also punishes everyone who joined in the wave |
,antiraid newaccounts on --threshold 7 --do kick | Accounts younger than that many days |
,antiraid avatar on --do kick | Accounts with no avatar |
- Antiraid actions are
banorkick. ,antiraid whitelist lets a specific account through. - In raid mode, welcome and goodbye messages pause, and with
--punish trueeveryone who joins is punished too. ,antiraid state ends it. - ,raid removes everyone who joined in a time window after the fact.
For stronger protection, add verification with a captcha.
Filters
Filters delete messages as they're sent. Turn one on in a channel, or in every channel with all:
,filter invites all on --do delete ,filter spam #general on --threshold 5 --do jail ,filter caps all on --threshold 70 ,filter add badword
- Kinds:
invites,links(with a whitelist),spam,caps,emoji,massmention,spoilers,musicfiles, plus blocked words (,filter add) and patterns (,filter regex). --docan bedelete(default),warn,jail,kickorban. Each kind has anexemptlist of roles; administrators are never filtered.
Honeypot
A bait channel only spam bots post in. Anyone who types there is deleted and punished. Administrators and staff are exempt.
,honeypot add #dont-type-here softban
Punishments: ban, softban (ban and unban, deleting their recent messages) or jail. When you add one, the bot posts a warning in the channel so members don't type there by mistake. Spam bots don't read it.
Restricted pings
Pick roles only some roles may ping. Anyone else's ping of the role is deleted, and after a few in 10 minutes they're timed out.
,restrictping add @Announcements ,restrictping whitelist @Announcements @Event Team ,restrictping threshold @Announcements 2 ,restrictping duration @Announcements 30m
The default is 3 pings, then a 10-minute timeout; ,restrictping duration @role 0 only deletes. Administrators, Manage Server, staff roles and members Discord lets ping everyone are never stopped. ,restrictping list shows them all. These commands need Manage Server.