Skip to content

New rule type for chat filtering #7

@cafestifflered

Description

@cafestifflered

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...

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions