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

Chat Filter #41

Open
valkyrienyanko opened this issue Dec 28, 2021 · 0 comments
Open

Chat Filter #41

valkyrienyanko opened this issue Dec 28, 2021 · 0 comments
Labels
Easy Enhancement New feature or request Good First Issue Good for newcomers Help Wanted Extra attention is needed Low Priority Not of primary focus Server Server related

Comments

@valkyrienyanko
Copy link
Contributor

Things that need to be done

  • Move BlockedStrings to its own txt, read this txt on server load and load it into a variable in the server
  • Add more curse words to the BlockedStrings
  • Add option to PrEvEnT mEsSaGeS lIkE tHIS
  • Add option to PREVENT MESSAGES IN ALL CAPS
  • Add option to disable blocking curse words
  • All curse words should be replaced with different variations of meow (e.g. meowww, meoww, meowwww, purrr)

// Remove any trailing spaces at start and end
message = message.Trim();
// Swear filter
foreach (var blockedString in BlockedStrings)
message = message.Replace(blockedString, "meowww");

@valkyrienyanko valkyrienyanko added Easy Enhancement New feature or request Good First Issue Good for newcomers Help Wanted Extra attention is needed Low Priority Not of primary focus Server Server related labels Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Enhancement New feature or request Good First Issue Good for newcomers Help Wanted Extra attention is needed Low Priority Not of primary focus Server Server related
Projects
None yet
Development

No branches or pull requests

1 participant