# 🛑 Anti Spam

> **Info:**
This module is configured in **modules/chat.yml** inside the PhoenixLobby folder.

## Anti Spam

Anti Spam blocks the messages that annoy the rest of your players. Each check can be turned off on its own in **Editor > Settings > Chat > Anti Spam**.

Players with `phoenixlobby.bypass.antispam` are not checked.

<figure><img src="../../.gitbook/assets/chat/anti-spam.png" alt="" width="563"><figcaption><p>Chat (Anti Spam)</p></figcaption></figure>

## Repeated Messages

Blocks a message that is too similar to the last ones the player sent. **Repeated Messages History** is how many of their previous messages are compared, and **Similarity Percentage** is how close a message has to be before it counts as a repeat.

<figure><img src="../../.gitbook/assets/anti-spam/block-repeated-messages.png" alt="" width="563"><figcaption><p>Anti Spam (Block Repeated Messages)</p></figcaption></figure>

<figure><img src="../../.gitbook/assets/anti-spam/repeated-messages-history.png" alt="" width="563"><figcaption><p>Anti Spam (Repeated Messages History)</p></figcaption></figure>

<figure><img src="../../.gitbook/assets/anti-spam/similarity-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Similarity Percentage)</p></figcaption></figure>

## Caps

Blocks a message with too many capital letters. **Caps Minimum Length** keeps short messages out of the check, and **Caps Percentage** is how much of the message has to be uppercase before it is blocked.

<figure><img src="../../.gitbook/assets/anti-spam/block-caps.png" alt="" width="563"><figcaption><p>Anti Spam (Block Caps)</p></figcaption></figure>

<figure><img src="../../.gitbook/assets/anti-spam/caps-minimum-length.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Minimum Length)</p></figcaption></figure>

<figure><img src="../../.gitbook/assets/anti-spam/caps-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Percentage)</p></figcaption></figure>

## Character Flood

Blocks a message with the same character repeated too many times, with **Max Repeated Characters** setting the limit.

<figure><img src="../../.gitbook/assets/anti-spam/block-character-flood.png" alt="" width="563"><figcaption><p>Anti Spam (Block Character Flood)</p></figcaption></figure>

<figure><img src="../../.gitbook/assets/anti-spam/max-repeated-characters.png" alt="" width="563"><figcaption><p>Anti Spam (Max Repeated Characters)</p></figcaption></figure>

## Feature State

Turns every Anti Spam check off at once.

<figure><img src="../../.gitbook/assets/anti-spam/feature-state.png" alt="" width="563"><figcaption><p>Anti Spam (Feature State)</p></figcaption></figure>

<details>

<summary>Anti Spam Config</summary>

```yaml
anti-spam:
  enabled: true
  block-repeated-messages: true
  repeated-messages-history: 3
  similarity-percentage: 90
  block-caps: true
  caps-minimum-length: 8
  caps-percentage: 70
  block-character-flood: true
  max-repeated-characters: 5
```

</details>

Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat-resync/anti-spam