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

# Anti-Nuke Protection

> Protect your server from mass-deletion, unauthorized bot additions, and rogue staff.

# Anti-Nuke System (NEW)

Veronica's Anti-Nuke system acts as a high-level security "Shield" for your server. It monitors sensitive administrative actions and automatically punishes users who exceed defined thresholds.

<Info>
  The Anti-Nuke system prioritizes **Server Owner** and **Trusted Admins**, bypassing security checks for these individuals to ensure flexibility during legitimate maintenance.
</Info>

## Getting Started

The easiest way to configure the system is through the interactive setup wizard.

```bash Slash theme={null}
/antinuke setup
```

This will automatically create default whitelists, verify role hierarchy, and enable the core security modules with a safe threshold of `1`.

## Core Security Modules

The system consists of several specialized "Guards":

| Guard             | Monitors                  | Safeguard                                       |
| :---------------- | :------------------------ | :---------------------------------------------- |
| **Channel Guard** | Channel Creation/Deletion | Prevents mass-deletion or creation of channels. |
| **Role Guard**    | Role Creation/Deletion    | Stops mass-role editing or deletion.            |
| **Member Guard**  | Kicks and Bans            | Prevents mass-punishment of server members.     |
| **Bot Guard**     | Bot Additions             | Blocks unauthorized bots from being added.      |
| **Beast**         | Admin Permissions         | Monitors role granting of sensitive perms.      |

## Configuration

You can manage the system via slash commands or the interactive panel.

### Trusted Admins

Only the **Server Owner** can manage the Anti-Nuke trusted list. Trusted admins bypass all security guards.

```bash theme={null}
/antinuke admin add user:@StaffMember
```

### Module Thresholds

Configure how many actions are allowed within a specific time window.

```bash theme={null}
/antinuke config module:Channel Guard threshold:5 interval:10
```

### Punishment Modes

When a threshold is triggered, Veronica can take the following actions:

* **Ban**: Instantly bans the rogue administrator.
* **Kick**: Kicks the user from the server.
* **Strip Roles**: Removes all roles from the user (quarantine).

***

## Backup & Restore

Veronica automatically takes snapshots of your server configuration (channels, roles, permissions). In the event of a successful "nuke" attack, you can restore your server to its previous state.

<CardGroup cols={2}>
  <Card title="Backup" icon="cloud-arrow-up">
    `!antinuke backup`
    Create a permanent snapshot of current server data.
  </Card>

  <Card title="Restore" icon="clock-rotate-left">
    `!antinuke restore`
    Revert the server to the last saved snapshot.
  </Card>
</CardGroup>

## Security Reports

Generate a weekly summary of all security incidents and your server's current "Shield Health" score.

```bash theme={null}
/antinuke report
```

<Tip>
  Keep your log channel properly configured to receive real-time alerts whenever a security guard is triggered or a punishment is issued.
</Tip>
