> For the complete documentation index, see [llms.txt](https://never-see.gitbook.io/vega-bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://never-see.gitbook.io/vega-bot/commands/calling-commands/auto-moderation.md).

# Auto-moderation

Commands that can be enabled or disabled.

## The AntiBot function

| Command                | Description                                               |
| ---------------------- | --------------------------------------------------------- |
| `/antibot {on \| off}` | Protection against adding bots to the server + anti-crash |

![](https://1828395230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MScSkqVHeTMq9LR53Ps%2F-MdXi4WgwtE9XEwXGJMI%2F-MdXiF-W3JuwZRZw9DIE%2Fimage.png?alt=media\&token=a950c4ff-3ba6-48ff-959d-93b6b763534e)

This **function reacts only to bots**, and does not react to ordinary users (people).

### AntiBot enabled:

If you enable **AntiBot**, the bot will ban unknown bots invited to the server.\
• Why unknown?\
— Because the bot has a white list and ignores the bots listed in it.

![](https://1828395230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MScSkqVHeTMq9LR53Ps%2F-MdXi4WgwtE9XEwXGJMI%2F-MdXjEbBoxtBiYLBYSiU%2Fimage.png?alt=media\&token=c01ba110-1e16-4601-aec4-1bc7dfcc68aa)

If an unknown bot managed to somehow affect the server, then **VEGA ⦡** will restore everything.

### Recovery

What will happen if an unknown bot affects the server:

* Deleting roles and channels created by an unknown bot.
* Creating roles and channels deleted by an unknown bot.
* Restore the server name and its settings.
* Restoring channel rights and roles.
* Ban user.
* Unban user.

— So far, the bot does not respond to the changed emoji and avatar of the server.

## The AntiCrash function

### AntiCrash enabled:

If you enable **AntiCrash**, the bot will ban server participants when:\
• configured command `/msg-appeal message`\
• enabled command `/edit-server on` (editing the server is prohibited)\
• if the member is not added to the whitelist by the command `/wluser add @user`

![](https://1828395230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MScSkqVHeTMq9LR53Ps-1703796690%2Fuploads%2FDWX0TgY0BowtQCMveW83%2Fvega%20anticrash.png?alt=media\&token=a3d302b1-db35-4ca3-b1b3-c9d3b615881c)

### Editing the server:

The `/edit-server {on | off}` command can be used to prohibit or allow editing of the server.

![](https://1828395230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MScSkqVHeTMq9LR53Ps-1703796690%2Fuploads%2FaF2JU8pWydC0ZO0ZCSBd%2Fvega%20edit-server%20en.png?alt=media\&token=370b09a0-d698-4622-ae3c-989fc6edc6e3)

#### Actions that the bot will respond to:

[Recovery](#recovery-1)

### Whitelist of members:

The `/wluser {add | remove} {@user | ID}` command is needed to whitelist a server member.

![](https://1828395230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MScSkqVHeTMq9LR53Ps-1703796690%2Fuploads%2FFsUHzDIAWOfjDmNzPUFC%2Fvega%20wluser%20add%20en.png?alt=media\&token=2e611af9-7f20-4f1e-b1ca-dccd23097166)

#### What happens if I whitelist a member?

The bot will ignore the actions of the member, namely:\
• Ban/Unban users\
• Kick users\
• Changing the roles of a server member

#### What will happen if you do not whitelist members?

The bot will ignore the [specified actions](#whitelist-of-members) of the members.

{% hint style="info" %}
To check the presence of the server ID in the white list of members, you can use the `/list wlusers` command. If it is not there, then the members will not be banned!
{% endhint %}

### Recovery

What will happen if a member affects the server:

* Deleting roles and channels created by an unknown bot.
* Creating roles and channels deleted by an unknown bot.
* Restore the server name and its settings.
* Restoring channel rights and roles.
* Ban user.
* Unban user.

— So far, the bot does not respond to the changed emoji and avatar of the server.

## AntiMSGBot function

| Command                | Description                              |
| ---------------------- | ---------------------------------------- |
| `/antimsg {on \| off}` | Auto-cleaning of offline bot's messages. |

![](https://1828395230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MScSkqVHeTMq9LR53Ps%2F-Mh3Rwbp_ufXhawHD8wy%2F-Mh3SDcVSp16MykQFccC%2Fimage.png?alt=media\&token=76af40c3-da17-453c-81e5-45c058aa600f)

This **function reacts only to bots**, and does not react to ordinary users (people).\
Messages from unknown offline bots will be deleted.

## Anti-invitation

| Command                   | Description                            |
| ------------------------- | -------------------------------------- |
| `/antiinvite {on \| off}` | Anti-invitations to the Discord server |

![](https://1828395230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MScSkqVHeTMq9LR53Ps%2F-MdXlT580AShJ1Lde1sb%2F-MdXljHL50jV6eV4asr9%2Fimage.png?alt=media\&token=b9023144-71f4-4684-87b3-7a2f382df0a4)

{% hint style="warning" %}
**Attention!**\
This feature is under development!
{% endhint %}

### Anti invitations included:

If this feature is enabled, the bot will delete links with an invitation to the Discord server of any participant other than the server Owner.
