-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
if(message.content.toLowerCase().includes(curseWords[i])) { | ||
message.reply('Please do not use profane language 🚫. If you think I did a mistake dont worry I am still under development, tag Community Manager and report this 🏷️.'); | ||
message.author.send(warnEmbed); | ||
message.delete(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be there. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm. I've seen that this is included for tech startups so I thought I would include one for curse words too. Maybe we could remove it and make it only send private message. I think that would be better yea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Private and message under their message should be good
@kaiwalyakoparkar Done! Made the curse words messages private. |
@ctnkaan Good job but I meant to say that both ways. As we do in the edTech startup words. (We message in both in DM and in the public chats ) |
@kaiwalyakoparkar done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 Thanks for collaborating and contributing
Fixes Issue
This PR fixes the following issues:
#13
Changes proposed
Added a array of curse words. Bot scans the messages if any of them contain a word from the array.
Check List (Check all the boxes which are applicable)
Screenshots
Here are some tests