CSC510-Group-25 / ClassMateBot

This project helps to improve the life of students, TAs and teachers by automating many mundane tasks which are sometimes done manually on Discord. This is release version 3 of the ClassMateBot.
MIT License
0 stars 5 forks source link

Profanity filter: Commands to customize censored words #96

Open snapcat opened 2 years ago

snapcat commented 2 years ago

Relevant files:

profanity_helper.py, bot.py And possibly cogs/wordfilter.py if you decide to use a cog.

Will need some way of preventing commands from being censored.

The filter can be pretty restrictive. It censors words such as:

foobar
fubar
hell
heshe
kill
len
pawn
pot
slope
strip
stupid

heshe: he/she is also censored.

strip and len being censored are obviously problematic for anyone working with python.

If you need to kill a process or calculate a slope... well, you're out of luck with this thing!

See the full list here