Configuration

This module blocks words based on a configurable list and performs actions when they are blocked.

General

modules:
  # Allows you to block or censor words from a list
  # It also detects similar words; for example:
  # If the word "hello" is blocked, "he llo" will also be blocked
  #
  # Blocked words module loaded from modules/blockedwords.yml
  blocked-words: true
  • modules.blocked-words: Enable/disable the module

Module

Action

# What to do when a blocked word is detected:
# - CENSOR: Replace only the matched characters with censor-char (partial)
# - CENSOR_ALL: Replace the entire message with censor-char repeated
# - BLOCK: Cancel the message entirely
action: CENSOR
  • CENSOR: It censors ONLY the blocked word, for example:. If you block "hello" and type "hellos," the result will be "*****s".

  • CENSOR_ALL: Censor the blocked word and the rest of the word. If you block "hello" and type "hellos," the result will be "******".

  • BLOCK: Blocks the message when a blocked word is detected and sends a message.

Block Message

  • This is the message that will be sent to the user if you use "BLOCK" If you want to completely disable the message and not send anything to the user:

Blocked Words

The list of all blocked words

Actions

Coming soon...

Last updated