---
description: On this page is an overview of all Anti Nuke setup commands.
---

# ⚠️AntiNuke Setup

{% hint style="danger" %}
This system has been deleted and will not work anymore. Please read [this page](../start-here/infinitybot-deletion-notice) for more information.&#x20;
{% endhint %}

## Basic AntiNuke Setup Video

{% embed url="https://youtu.be/U20FqlLjjKU" %}

## Fast Setup Command

The `/antinuke setup` command can be used to quickly set up the Anti Nuke system for your server.

| Command Option Name | Function                                                                                                                                                                                                                                           |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <h4>guide</h4>      | This command option allows you to select the guide that you want to get. You can select "Full setup guide" if you want the bot to guide you trough the whole setup and "List with important to-do points" if you only want a few important points. |

{% hint style="success" %}
The `/antinuke setup` command will run all actions from the commands below
{% endhint %}

***

## Separate Setup Commands

If you wish to set up everything separately you can use the commands below.&#x20;

{% stepper %}
{% step %}
### Set up a log channel

The `/setup log-channel` command can be used to select a log channel for all Anti Nuke actions. This will also log actions by server staff.

| Command Option Name | Function                                                                                          |
| ------------------- | ------------------------------------------------------------------------------------------------- |
| log-channel         | This command option allows you to select a channel that you want to use as Anti Nuke log channel. |
{% endstep %}

{% step %}
### Set up a max

The `/setup max` command allows you to select a max amount of channels, roles, users, invites, etc that staff can delete in your server before action is taken by the bot.&#x20;

{% hint style="info" %}
"Action" can be putting the user in quarantine if they used the action commands from the bot.

It can also be kicking the user from the server if they did the action directly from Discord.

In very few cases, it can also be putting the user in time-out.
{% endhint %}

| Command Option Name | Function                                                                                       |
| ------------------- | ---------------------------------------------------------------------------------------------- |
| action              | The action that you would like to take. You can select for what trigger you want to set a max. |
| max                 | A number of max deletions a user can make before action is taken.                              |
{% endstep %}

{% step %}
### Set up an extra owner

The `/setup extra-owner` command allows you to select up to 5 users to become your 'extra server owner'. They will then be unafected by the Anti Nuke system.

| Command Option Name | Function                                                                                                                                                                  |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action that you would like to take. You can add an extra owner, remove an extra owner or remove all extra owners.                     |
| user                | With this option you can select the user on who you want to preform the selected action. If you selected to remove all extra owners this option will not affect anything. |

{% hint style="danger" %}
Any user marked as extra owner will be unafected by the Anti Nuke system.
{% endhint %}
{% endstep %}
{% endstepper %}

## Permissions Setup Commands

After you have removed all dangerous permissions from roles you can allow users to use [action commands](action-commands) to still be able to do stuff in the server. With the commands in the following steps you can select what role is allowed to manage what.

{% hint style="danger" %}
ALL users with a selected role will be able to manage the system of the command!

You should only select admin roles for these permissions.
{% endhint %}

{% hint style="info" %}
Users can also use these commands if they have the permissions in Discord, meaning they don't need a permission role if they already have the permission itself.
{% endhint %}

{% stepper %}
{% step %}
### Manage Channel Permission

With the `/setup perm-channels` command you can select a role that you want to be able to create or delete a channel. &#x20;

| Command Option Name | Function                                                                                       |
| ------------------- | ---------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action that you would like to take.                        |
| manage-channel-role | With this option you can select the role that you want to allow to create and delete channels. |


{% endstep %}

{% step %}
### Manage Role Permission

With the `/setup perm-roles` command you can select a role that you want to be able to create or delete a role.

| Command Option Name | Function                                                                                    |
| ------------------- | ------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action that you would like to take.                     |
| manage-roles-role   | With this option you can select the role that you want to allow to create and delete roles. |


{% endstep %}

{% step %}
### User Role Permission

With the `/setup perm-user-roles` command you can select a role that you want to be able to add or remove roles from users.

| Command Option Name | Function                                                                                            |
| ------------------- | --------------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action that you would like to take.                             |
| user-roles-role     | With this option you can select the role that you want to allow to add and remove roles from users. |
{% endstep %}

{% step %}
### Kick, Ban & Unban permissions

With the `/setup perm-kick-ban` command you can select a role that can kick users, a role that can ban users and a role that can unban users.

| Command Option Name | Function                                                                                                              |
| ------------------- | --------------------------------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action that you would like to take.                                               |
| kick-ban-role       | With this option you can select the role that you want to allow to kick, ban or unban, depending on the option above. |
{% endstep %}
{% endstepper %}

## Toggle Commands

Some Anti Nuke features can be disabled or enabled with a command.

| Command Name                          | Function                                              |
| ------------------------------------- | ----------------------------------------------------- |
| `/antinuke-on-off`                    | Enable or disable all Anti Nuke features              |
| `/toggle invite-anti-nuke`            | Enable or disable the invite link deletion protection |
| `/toggle unauthorized-bot-protection` | Enable or disable the unauthorized bots protection    |
| `/toggle channel-anti-nuke`           | Enable or disable the channel Anti Nuke               |
| `/toggle role-anti-nuke`              | Enable or disable the role Anti Nuke                  |
| `/toggle user-anti-nuke`              | Enable or disable the kick, ban & unban Anti Nuke     |

## Manager Commands

With these command you can check the Anti Nuke settings.

### Anti Nuke Configuration

With the `/config` command you can get an overview of most Anti Nuke settings.

When you use the command, there will be an option called **settings**, all available choices inside of that option can be found below.

| Choices                        | Function                                                            |
| ------------------------------ | ------------------------------------------------------------------- |
| General Settings & Permissions | General settings, permission settings, max deletions and Anti Raid. |
| Toggles                        | All feature toggles.                                                |

![](https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FIX0neGb13gTp7dN15Ocm%2Fimage.png?alt=media\&token=2936aeba-ad3f-4c79-930f-3ec682fb3447)

### Check User & Role Permissions

With the `/check perms` command you can check the permission of a user or a role.&#x20;

| Command Option Name | Function                                                             |
| ------------------- | -------------------------------------------------------------------- |
| user                | This option allowes you to select a user to check the permissions of |
| role                | This option allowes you to select a role to check the permissions of |

{% hint style="info" %}
This command only checks the permissions of a user or role in Discord, meaning it does not show any permissions that have been set up with my commands.
{% endhint %}

### Check Multi Factor Authentication Status

With the `/check mfa` command you can check your server's MFA status. If it is not enabled, it will provide you a guide on how to enable it.

{% hint style="info" %}
Having multi factor authentication enabled is smart because server staff can not change anything in your server if they do not have this extra layer of protection enabled on their account.
{% endhint %}
