[Feature Request] Regex-based Phrase Blacklist (automod)
Closed this issue · 1 comments
nyoma-diamond commented
Feature: Regex-based Phrase Blacklist
Parameters:
- Regex pattern
- Whether to add or remove pattern
- Other actions
Behavior:
- Provided patterns are added to a blacklist.
- If a user sends a message that matches a pattern in the blacklist, the set automod actions will occur
Example calls:
.censor foo
-> adds the patternfoo
to the blacklist. Any message containing the string "foo" anywhere will trigger automod.censor add ^foo$
-> adds the patternfoo
to the blacklist. Any message consisting of only "foo" will trigger automod.censor add f([oO0]|\(\)){2}bar
-> adds the pattern.*f([oO0]|\(\)){2}bar.*
to the blacklist. Any message containing "foobar" anywhere with any of the O's uppercase, lowercase, changed to zeros, or replaced with parentheses, will trigger automod..censor remove ^foo$
-> removes the patternfoo
to the blacklist. Messages consisting of only "foo" will no longer trigger automod.censor list
-> displays the full list of blacklisted patterns.
Other notes:
- General automod needs to be implemented first
nyoma-diamond commented
Sub-feature of #15