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 fails when asking/answering questions #76

Closed snapcat closed 2 years ago

snapcat commented 2 years ago

Just use the $ask command with any word!

If you don't enclose the word with quotation marks, the filter activates but the question still goes through. The bot also sends the following DM:

Command raised an exception: NotFound: 404 Not Found (error code: 10008): Unknown Message

If you do enclose the question, the filter doesn't activate at all.

filterfail .

snapcat commented 2 years ago

Command raised an exception: NotFound: 404 Not Found (error code: 10008): Unknown Message:

Occurs when the bot deletes a censored message and the qanda cog also tries to delete it.

snapcat commented 2 years ago

Suggested fix: include profanity checking inside qanda.py so that the bot doesn't censor itself when it tries to edit a message...

snapcat commented 2 years ago

Resolved in #106, will close with approved PR