Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rule type for chat filtering #7

Open
cafestifflered opened this issue Jun 11, 2022 · 0 comments
Open

New rule type for chat filtering #7

cafestifflered opened this issue Jun 11, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cafestifflered
Copy link
Owner

Allow creating a rule that looks at the message for specific words. If the words match, block the message from being sent.

This will be used as a chat, advert, or spam filter.

Might be best to create a new wordfilter.yml file for these types of rules just to separate them out from the other rules for easier organization. Same rule format, though.

Example:

blocked-words:
  type: "chat_filter"
  regex: true
  words: ["oof", "uwu"]

This would block a message sent by a player including "oof", as well as "o of", "o.o.f", etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants