Configuration
Configuration file: modules/antispam.yml
General
modules:
# Block similar letters and other types of spam in the chat.
#
# Anti spam module loaded from modules/antispam.yml
anti-spam: truemodules.anti-spam: Enable/disable the module
Module
Action
# Action to execute when spam is detected.
# Available values:
# - BLOCK : cancel the message entirely.
# - CENSOR : replace uppercase letters with '*' (or the selected censor-char).
action: CENSORBLOCK: Cancels the message.
CENSOR: Replace the uppercase letters with the 'censor-char' character.
Censor-char
The censor character for the 'CENSOR' action.
Checks
repeated-chars: Detects when the same character is repeated multiple times in a row.
enabled: Enable/disable this check.
threshold: Minimum number of consecutive repeated characters required to trigger detection.
repeated-pattern: Detects when a short sequence of characters is repeated consecutively.
enabled: Enable/disable this check.
min-length: Minimum length of the repeated pattern.
max-length: Maximum length of the repeated pattern.
min-repeats: Minimum number of consecutive repetitions required before the message is flagged.
repeated-words: Detects when the same word is repeated multiple times in succession.
enabled: Enable/disable this check.
threshold: Minimum number of consecutive repeated words required to trigger detection.
char-diversity: Detects long messages that contain very few unique characters compared to their total length.
enabled: Enable/disable this check.
min-length: Minimum message length (excluding spaces) before the diversity check is applied.
min-ratio: Minimum required ratio of unique characters to total characters. Messages below this value are considered spam.
Whitelist
List of words that are ignored by the repeated-words check.
Last updated