Antinuke
Stop a rogue moderator or hacked staff account from wrecking your server.
,antinuke config in Discord.How to use it
As the owner, run antinuke recommended to turn on a strong setup, then move cope's role above your staff roles. Check antinuke config, adjust any module with antinuke <module> on <punishment> <threshold>, and add trusted bots to the whitelist.
Reference
Why turn it on
Most servers that get wrecked aren't hit by strangers. A staff account gets phished, or a moderator goes rogue, and in a minute they ban hundreds of members and delete every channel. Antinuke watches for that burst and stops the person while it's happening.
How it works
cope counts dangerous actions per person within 60 seconds. When someone reaches a module's threshold, cope applies that module's punishment, then DMs the server owner and every antinuke admin with who did it and what happened. Everything is off until you turn it on. The server owner and whitelisted users are never punished.
Quick start
One command turns on a strong setup you can adjust afterwards. It asks you to confirm first.
,antinuke recommended ,antinuke config
Then move cope's role above your staff roles. It can't punish anyone whose top role is above its own.
Modules
| Module | What it counts |
|---|---|
| ban | Bans |
| kick | Kicks |
| role | Roles created or deleted |
| channel | Channels created or deleted |
| emoji | Emojis or stickers deleted |
| webhook | Webhooks created (a common way to spam every channel) |
| botadd | A bot added without being whitelisted. The bot is banned straight away. |
| vanity | The vanity URL being changed. Discord doesn't let bots change it back, so only the person is punished. |
| permissions | A watched permission granted to or removed from a role. The change is reverted, and the person is punished if you chose a punishment. |
,antinuke ban on stripstaff 3 true ,antinuke channel on stripstaff 2 ,antinuke botadd on
Punishments
| Punishment | What happens |
|---|---|
| stripstaff | Removes every staff role and every role with dangerous permissions. Set your staff roles with ,staff set @role. |
| jail | Gives the jailed role and hides the rest of the server. Needs ,setup first. |
| kick | Removes them from the server. |
| ban | Bans them. |
Threshold
How many actions within a minute are allowed before the punishment, from 1 to 100. Keep it low: 1 to 5 covers almost every server. A threshold of 1 punishes the very first action.
Command detection
For ban, kick and role, true also counts actions taken through cope's own commands, so a moderator can't get around antinuke by using the bot.
Watching permissions
Choose grant or remove, a permission and, optionally, a punishment. The change is always reverted.
,antinuke permissions watch grant administrator ban ,antinuke permissions watch grant manage_guild stripstaff ,antinuke permissions watch remove administrator stripstaff ,antinuke permissions list
Whitelist and admins
| What it means | |
|---|---|
| whitelist | Ignored by antinuke completely. Only add people and bots you trust with the whole server. |
| admin | Can change or turn off antinuke, and gets the alert DMs. Only the server owner can add admins. Keep this list short. |
,antinuke whitelist add @trusted-bot ,antinuke admin add @co-owner
Discord's built-in mass ban skips bots entirely, so give moderators fake permissions instead of real ban rights where you can.
Commands
,antinukeProtect the server from mass bans, kicks and deletions
Aliases · an
Permissions · Server Owner or Antinuke Admin
,antinuke admin <member>Let a member configure antinuke (run it again to remove them); no member lists admins
Aliases · admins
Permissions · Server Owner
Example · ,antinuke admin @user
,antinuke admin add <member>Let a member configure antinuke
Permissions · Server Owner
,antinuke admin listList antinuke admins
Permissions · Server Owner
,antinuke admin remove <member>Remove an antinuke admin
Permissions · Server Owner
,antinuke ban <on|off> <punishment> <threshold> <command detection>Punish members who mass ban
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke ban on ban 3 true
,antinuke botadd <on|off>Ban bots that aren't whitelisted as soon as they're added
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke botadd on
,antinuke channel <on|off> <punishment> <threshold>Punish members who mass create or delete channels
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke channel on ban 3
,antinuke configSee which antinuke modules are on
Aliases · settings, view
Permissions · Server Owner or Antinuke Admin
,antinuke emoji <on|off> <punishment> <threshold>Punish members who mass delete emojis
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke emoji on kick 5
,antinuke kick <on|off> <punishment> <threshold> <command detection>Punish members who mass kick
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke kick on ban 3 true
,antinuke permissionsRevert changes to watched role permissions
Aliases · perms
Permissions · Server Owner or Antinuke Admin
,antinuke permissions listList watched permissions
Permissions · Server Owner or Antinuke Admin
,antinuke permissions unwatch <grant|remove> <permission>Stop watching a permission
Permissions · Server Owner or Antinuke Admin
,antinuke permissions watch <grant|remove> <permission> [punishment]Revert a permission being granted to or removed from any role, and optionally punish whoever did it
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke permissions watch grant administrator ban
,antinuke recommendedTurn on a strong recommended setup (you can change any part after)
Aliases · recommend, preset, quicksetup
Permissions · Server Owner or Antinuke Admin
,antinuke role <on|off> <punishment> <threshold> <command detection>Punish members who mass delete roles
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke role on stripstaff 3 true
,antinuke vanity <on|off> <punishment>Punish anyone who changes the vanity URL (Discord doesn't let bots change it back)
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke vanity on ban
,antinuke webhook <on|off> <punishment> <threshold>Punish members who mass create webhooks
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke webhook on ban 3
,antinuke whitelist <user>Whitelist a user or bot (run it again to remove them); no user lists the whitelist
Aliases · wl
Permissions · Server Owner or Antinuke Admin
Example · ,antinuke whitelist @user
,antinuke whitelist add <user>Whitelist a user or bot
Permissions · Server Owner or Antinuke Admin
,antinuke whitelist listList whitelisted users and bots
Permissions · Server Owner or Antinuke Admin
,antinuke whitelist remove <user>Remove a user from the whitelist
Permissions · Server Owner or Antinuke Admin
/antinuke webhook [args]Punish members who mass create webhooks
/antinuke kick [args]Punish members who mass kick
/antinuke role [args]Punish members who mass delete roles
/antinuke permissions viewRevert changes to watched role permissions
/antinuke permissions listList watched permissions
/antinuke permissions unwatch <direction> <permission>Stop watching a permission
/antinuke permissions watch <direction> <permission> [punishment]Revert a permission being granted to or removed from any role, and optionally punish whoever did it
/antinuke admin remove <member>Remove an antinuke admin
/antinuke admin listList antinuke admins
/antinuke admin add <member>Let a member configure antinuke
/antinuke botadd <setting>Ban bots that aren't whitelisted as soon as they're added
/antinuke configSee which antinuke modules are on
/antinuke channel [args]Punish members who mass create or delete channels
/antinuke whitelist remove <user>Remove a user from the whitelist
/antinuke whitelist add <user>Whitelist a user or bot
/antinuke whitelist listList whitelisted users and bots
/antinuke ban [args]Punish members who mass ban
/antinuke vanity <setting> [punishment]Punish anyone who changes the vanity URL (Discord doesn't let bots change it back)
/antinuke recommendedTurn on a strong recommended setup (you can change any part after)
/antinuke emoji [args]Punish members who mass delete emojis