This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Word Filter
Lea edited this page Apr 8, 2023
·
1 revision
AutoMod offers a basic word filter, which can be configured using /botctl filter
.
Every word on the list can have a different filter strictness. The possible values are:
-
This will only match full words. For example, the filter "bean" would match "I ate a bean", but not "I ate several beans".
This behavior will likely be changed in the future. -
This will match every message including the filtered word as a substring. For example, the filter "car" matches "I like cars", but also "#admin-erp scarred my soul".
If no other option is provided, this is the default. -
This matches like "HARD" does, but does the following changes to the message beforehand:
- All whitespaces are removed
- Common lookalike characters are replaced, e.g.
1
=>i
,@
=>a
. The full list of substitutions can be found here. - If the filter is "sex", this will match "s3x" as well as "The cars exploded".
It should be noted that all matches are case insensitive, no matter the strictness level. Moderators are excluded from word filters.
After adding filters, you can check whether a message matches a filter using /botctl filter test [phrase]
.