# Auto-moderation

## The AntiBot function

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

![](/files/-MdXiF-W3JuwZRZw9DIE)

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.

![](/files/-MdXjEbBoxtBiYLBYSiU)

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`

![](/files/7hcEQQJ7YOwM40UyxdFL)

### Editing the server:

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

![](/files/i7fM9j68aJ7He9Z552bH)

#### 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.

![](/files/rf30X7j20VZwXycoPOEo)

#### 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. |

![](/files/-Mh3SDcVSp16MykQFccC)

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 |

![](/files/-MdXljHL50jV6eV4asr9)

{% 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.


---

# Agent Instructions: 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://never-see.gitbook.io/vega-bot/commands/calling-commands/auto-moderation.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.
