> For the complete documentation index, see [llms.txt](https://themis-bot.gitbook.io/themis-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://themis-bot.gitbook.io/themis-docs/fundamentals/getting-set-up/anti-nuke.md).

# Anti-Nuke

{% hint style="warning" %}
This feature is in **beta testing** and tends to not always work effectively and sparingly, leading to holes in server security (not critical of course).
{% endhint %}

Protects your server in the event of compromisation using an algorithm that adapts to your server and analyses user behaviour, identifies compromised accounts and prevents server destruction(we call it Nuke).

After selecting `Anti-Nuke` in the selector, you will see the following menu:

<figure><img src="/files/QFq7JeeSnIBAlkXD9uTb" alt=""><figcaption></figcaption></figure>

#### Parameters

`Status` - a binary parameter indicating the status of the function. It can be disabled or enabled

`Whitelist` - a list of users who are ignored by the bot. It is recommended to use this function only as a last resort

`Panic Mode` - sets the criticality of the bot's operation, i.e. what actions the bot will perform when it detects a compromisation.

<figure><img src="/files/R0J3RxedvKNmrHBu1SEj" alt=""><figcaption></figcaption></figure>

* Delete Messages: deletes all messages sent by the user during the divergent behaviour period
* Revoke Perms: removes all roles of compromised user
* Server Lock: removes channel access for all users until the server owner arrives. The server can be restored with the `/settings` command by owner only

#### Logs

<figure><img src="/files/pkppTIs0bmFcvERPkyNx" alt=""><figcaption></figcaption></figure>

* Logs channel can be assigned with a button
* Logs can be exported in TXT, CSV and XML


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://themis-bot.gitbook.io/themis-docs/fundamentals/getting-set-up/anti-nuke.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
