Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

feat: ✨ add curse word detection #79

Merged
merged 4 commits into from
Sep 21, 2021
Merged

feat: ✨ add curse word detection #79

merged 4 commits into from
Sep 21, 2021

Conversation

ctnkaan
Copy link
Contributor

@ctnkaan ctnkaan commented Sep 7, 2021

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)

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Here are some tests
image

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();
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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

@ctnkaan
Copy link
Contributor Author

ctnkaan commented Sep 19, 2021

@kaiwalyakoparkar Done! Made the curse words messages private.

@kaiwalyakoparkar
Copy link
Contributor

@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 )

@ctnkaan
Copy link
Contributor Author

ctnkaan commented Sep 20, 2021

@kaiwalyakoparkar done

Copy link
Contributor

@kaiwalyakoparkar kaiwalyakoparkar left a 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

@kaiwalyakoparkar kaiwalyakoparkar merged commit a396a8c into WeMakeDevs:main Sep 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants