-
Notifications
You must be signed in to change notification settings - Fork 322
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
add keyword blacklisting #2
Comments
OwO it's matmen |
This is going to be a long comment, but here is my outline/thoughts on this. Feel free to provide your input and I'll try to keep this post updated accordingly. OverviewHaving blacklisted keywords should be easy/trivial to set up and should make sense, yet fine-tuned enough to meet specific needs. Allowing regexes would allow for very specific blacklisting rules, but regexes can be confusing to the "average" server admin. Setting plain words (instead of regexes) would be much easier, but is not nearly as useful, as an admin would have to add all variations of a word, and some specific cases can't be feasibly covered (ex: blacklist any word that contains the same letter/symbol more than 5 times in a row). FiltersTo balance ease-of-use with ability to be specific, I think the best solution involves having multiple types of filters available. These are as follows: Word Filter
(Exact) Phrase Filter
Regex Filter
Filter GroupingsAnother issue is how to list filters and how to assign strike values to them. Doing this on a filter-by-filter basis would be time-consuming and annoying. Additionally, having filters all separate would have consequences on the modlog. Either the filter content would be listed (which might be in poor taste, as it might effectively be re-sending what was filtered), or a generic 'blacklisted word' message would be used (which would not be descriptive). The solution to this is to use filter groups. A group of filters can contain multiple word, phrase, and regex filters (mixing and matching is fine). A group of filters also has a name (settable) that is used for editing the group as well as being displayed in the modlog. An example of a server's filters might be:
Notice that easy group has a name, a strike count, and a (space-separated) list of filters. Setting the filters for a group could be as easy as:
Potential Commands
|
thank you very much good sir
no, do it.
The text was updated successfully, but these errors were encountered: