# /warn & /rm\_warn

## Command /warn

Bot's command `/warn` able moderators and administrators to increase the warning level for a user, when warn count reaches the number you'd set up, the user will be banned.

{% hint style="info" %}
Note. This command supports arguments! Read the next paragraphs for the details
{% endhint %}

### Configuration of the command

* Press the button "Chat settings" near the selected chat on the ["My chats" page](https://fullyst.com/my_chats)
* Open "Moderation" settings by clicking the corresponding menu item
* Enable `/warn` command on the page
* Set the number of warnings after which the user will be blocked

<figure><img src="https://1355699699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvbbEGxRTwrzUPUEXxps8%2Fuploads%2FaLL5RMBdHVrAxCjlLqZM%2FScreenshot%202022-11-10%20at%2001.11.43.png?alt=media&#x26;token=33f831b6-3586-4c50-8a21-5c0b21b6b348" alt=""><figcaption><p>Moderation settings</p></figcaption></figure>

### Command usage

{% hint style="info" %}
This command is available only for moderators and administrators in the chat.
{% endhint %}

#### Simple usage

Just send `/warn` as a reply to a message and the author receive a warning.

<figure><img src="https://1355699699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvbbEGxRTwrzUPUEXxps8%2Fuploads%2FK6B0xxD3x0E8D1Cfnviw%2Fphoto_2022-11-10%2001.21.20.jpeg?alt=media&#x26;token=b7aab36d-4060-4d8c-b69e-84d1ee3915d8" alt=""><figcaption><p>How to warn user</p></figcaption></figure>

In the answer, the bot will send a warning message with a current count of warnings

<figure><img src="https://1355699699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvbbEGxRTwrzUPUEXxps8%2Fuploads%2Fyne97HzUexiwrjNoUSTz%2Fphoto_2022-11-10%2001.21.22.jpeg?alt=media&#x26;token=b283d76a-9629-446c-84f0-35126f8a9e2c" alt=""><figcaption><p>Answer from the bot (in this case user will be banned)</p></figcaption></figure>

#### Usage with arguments

Command `/warn` supports one argument

* reason - the reason of warning

<figure><img src="https://1355699699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvbbEGxRTwrzUPUEXxps8%2Fuploads%2FDrnAETUdMJEoOQiAFWGM%2FIMG_0969.PNG?alt=media&#x26;token=5156a6c5-2722-41fa-b6ab-439b130cb07c" alt=""><figcaption><p>Increase warn level for the user and delete the message</p></figcaption></figure>

## Command /rm\_warn

Bot's command `/rm_warn` resets the warning level for the user.

### How to use

{% hint style="info" %}
This command has a link: /rm\_wans. Both commands do the same, so you may use any of these.
{% endhint %}

Just send `/rm_warn` or `/rm_warns` as a reply to the user's message

<figure><img src="https://1355699699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvbbEGxRTwrzUPUEXxps8%2Fuploads%2Fs7D4WyhoXl2XKmOcnohm%2Fphoto_2022-11-15%2002.44.53.jpeg?alt=media&#x26;token=0a4639d7-ea03-47ef-a44e-a0e31616be59" alt=""><figcaption><p>How to clear warn count for user</p></figcaption></figure>

As a reply to the message user will receive a notification that the warnings have been removed

<figure><img src="https://1355699699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvbbEGxRTwrzUPUEXxps8%2Fuploads%2FbilqakAI7Q8LGJGrbYPB%2Fphoto_2022-11-15%2002.45.28.jpeg?alt=media&#x26;token=37325df2-a388-4298-ace7-e76bab025f17" alt=""><figcaption><p>Notification for the user</p></figcaption></figure>
