> ## Documentation Index
> Fetch the complete documentation index at: https://docs.curebot.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Antinuke

> Stop a hacked or rogue staff account before it wrecks the server, and undo what it did.

A "nuke" is someone with staff permissions deleting channels, banning members or stripping roles as fast as they can. It usually happens when a staff account is hacked. Antinuke watches what staff do through Discord's audit log, and when someone does too much too fast, it stops them.

## How it decides

Each kind of action is a **module** with a **threshold**: a number of actions within a time. For example, *3 bans in 30 seconds*. Cross it, and cure applies the module's **punishment** to whoever did it, then tries to put things back (recreating deleted channels and roles, removing new ones).

## Modules

| Module | Watches |
| - | - |
| **Ban** and **Kick** | Members being removed |
| **Channel** | Channels created, deleted or renamed |
| **Role** | Roles created, deleted, or given dangerous permissions |
| **Overwrite** | Channel permission changes |
| **Webhook** | Webhooks created (a favourite for spam) |
| **Bot add** | New bots being added |
| **Emoji** | Emojis, stickers and soundboard sounds deleted |
| **Vanity** | The custom invite link being changed |
| **AutoMod** | Discord AutoMod rules turned off or deleted |
| **Member** | Mass timeouts and nickname changes |
| **Event** | Scheduled events created or deleted in bulk |

## Punishments

**Strip staff** (remove their staff roles: the safest default), **jail**, **kick** or **ban**. Strip staff needs your staff roles set in the dashboard.

## Set it up

**Dashboard → Security → Antinuke**. Start with Ban, Kick, Channel and Role at their suggested thresholds, with *strip staff*. Then add Webhook and Bot add.

## Trusted people

Only the **server owner** can add antinuke admins: people antinuke never acts on. Keep that list short. Every staff member on it is a staff member a hacker could use.

> [!WARNING]
>
> Antinuke can only act on people below cure's role. Put cure's role near the top, above every staff role.

From chat (owner or antinuke admins): `,antinuke config` shows everything, `,antinuke ban on` switches a module on. There's no slash version yet.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.