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

# antinuke

> Set restrictions on moderators to prevent any destructive behavior being done on your server.

## why use an anti-nuke system?

anti-nuke is a system that automatically performs an action on a user that is trying to perform malicious actions on your server. this is customizable to your liking and will keep your server safe from any harmful actions.

## allowing users to modify anti-nuke

by default, only the **server owner** can modify the anti-nuke configuration. using this command, you can allow other users to be able to change the anti-nuke settings.

<Warning>
  this is a very risky command, as this will allow the user to change **any** of the anti-nuke configuration
</Warning>

<CodeGroup>
  ```typescript Command wrap theme={null}
  ,antinuke trust (user)
  ```

  ```javascript Example theme={null}
  ,antinuke trust @ihwib
  ```
</CodeGroup>

to **remove** an anti-nuke admin, simply just run the command again and they will be removed.

## whitelisting users from the anti-nuke

by default, **everyone** will be affected by anti-nuke. to exempt a user, simply whitelist them using the `,antinuke whitelist` command.

<Warning>
  this will allow a user to completely bypass **all** the anti-nuke restrictions
</Warning>

<CodeGroup>
  ```typescript Command theme={null}
  ,antinuke whitelist (user)
  ```

  ```typescript Example theme={null}
  ,antinuke whitelist @ihwib
  ```
</CodeGroup>

to **remove** someone from the whitelist, simply run the command again and they will be removed.

## enabling an anti-nuke module

### available flags

the following flags can be used to define the anti-nuke module

<AccordionGroup>
  <Accordion title="threshold">
    the threshold is the number of actions a moderator can perform before being punished.

    <Tip>
      it's recommended to keep the threshold between `1`and `6`
    </Tip>

    <CodeGroup>
      ```javascript Syntax theme={null}
      --threshold (number)
      ```

      ```typescript Example theme={null}
      --threshold 3
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="punishment">
    the punishment which will be applied to the moderator

    <Info>
      Available punishments can be found in the punishments section
    </Info>
  </Accordion>

  <Accordion />
</AccordionGroup>
