Anti-Nuke and Anti-Bot: lock down your server
Automatically bans whoever mass-deletes channels or roles and blocks unauthorized bots.
What is a «nuke» and how Nekovilo protects you
A nuke is when someone with permissions (a compromised admin, a stolen account or a malicious bot) destroys a server in seconds: deleting channels and roles and banning everyone.
Nekovilo's Anti-Nuke watches Discord's audit log. It counts the destructive actions each person performs within 60 seconds and, when someone reaches the limit, bans them automatically.
| Watched action | Default limit (per minute) | Extra action besides the ban |
|---|---|---|
| Deleting channels | 3 | Re-creates the deleted channel (same name and settings) |
| Creating channels | 5 | Deletes the newly created channel |
| Deleting roles | 3 | — |
| Creating roles | 5 | Deletes the newly created role |
| Banning members | 3 | — |
| Timing out members | 5 | — |
The limit counts «on reach»: with a limit of 3, the third action within a minute already triggers the ban.
Enabling it from the dashboard
-
Open «Anti-Nuke / Raid»
Dashboard → your server → Anti-Nuke / Raid tab.
-
Turn on the «Anti-Nuke» switch
Starts watching for mass deletions.
-
Fill in «Whitelisted Users»
IDs of trusted people separated by commas (for example, your other admins). They are never punished.
-
Tune the limits
Channels (deletions/creations), Roles (deletions/creations) and Moderation actions (bans and timeouts).
-
Click «Save Security Settings»
It is active right away.
If you are not logged in, you will sign in with Discord first and come straight back to this dashboard section.
/antinuke activar:True
Enables (or with False disables) Anti-Nuke without opening the dashboard. Limits are changed in the dashboard.
Anti-Bot: control which bots get in
Many attacks start by inviting a malicious bot. Anti-Bot automatically kicks bots that join, depending on the mode:
| Mode | Behaviour |
|---|---|
| Disabled (Allow all) | Any bot can join. |
| Block Unverified | Kicks bots without Discord's «verified bot» badge. |
| Block All Bots | Kicks every new bot. |
In «Bot Whitelist» you can add IDs of bots that may join even when the filter is on.
/antibot modo nivel:<Off|Unverified only|All bots>
Changes the Anti-Bot mode.
/antibot whitelist bot_id:<ID>
Whitelists a bot.
Heads up
With «Block All Bots» on, whitelist a bot before inviting it, or it will be kicked as soon as it joins.Required permissions
What the bot needs
- View Audit Log (without it, Anti-Nuke sees nothing)
- Ban Members
- Manage Channels
- Manage Roles
- Kick Members (Anti-Bot)
- Role as high as possible in the list
What you need
- Manage Messages, Manage Server or Administrator to save in the dashboard
- Administrator for /antinuke and /antibot
Important
Anti-Nuke cannot ban anyone whose role is above the bot's, nor the server owner. That is why Nekovilo's role must sit at the very top, right below the owner.Security best practices
- Give Administrator to as few people as possible. Specific permissions are enough to moderate.
- Turn on mandatory two-factor authentication for moderators in Server Settings → Safety Setup.
- Make a backup from time to time: if someone destroys the server, you can rebuild channels and roles.
- Regularly review the audit log and the bots in your server.