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

# Anti-Nuke

> Catches mass-destructive actions before they finish.

## Overview

Anti-nuke is part of `!automod`, but a separate, more serious layer than the rest: it watches for a burst of destructive actions (bans, channel or role deletions) by one account, and automatically strips their permissions once they cross the threshold.

<Warning>
  Turning this on requires **Administrator**, it can strip roles or ban accounts automatically.
</Warning>

## Commands

<CodeGroup>
  ```javascript Syntax theme={null}
  !automod antinuke <enabled> [threshold] [window_seconds]
  ```

  ```javascript Example theme={null}
  !automod antinuke true 5 10
  ```
</CodeGroup>

Defaults: 5 destructive actions within a 10-second window.

## Whitelist

Users or bots exempt from anti-nuke tracking entirely.

<CodeGroup>
  ```javascript Syntax theme={null}
  !automod antinuke-whitelist add <user>
  !automod antinuke-whitelist remove <user>
  !automod antinuke-whitelist list
  ```

  ```javascript Example theme={null}
  !automod antinuke-whitelist add @CoOwner
  ```
</CodeGroup>

<Tip>
  Add every co-owner and trusted admin bot to the whitelist before turning this on, anti-nuke can't tell the difference between a compromised account and a busy admin doing legitimate cleanup.
</Tip>
