Skip to content

MadRobin13/Soap-the-Discord-Bot

Repository files navigation

Soap the Discord Bot!

Soap Logo

Do you have Problems with profanity in your server?

tom and jerry cleaning motuh with soap gif

Then you're in luck because I've just created the perfect companion for your server.

Meet Soap🧼: the dependable bot who is willing to call out anyone for cussing and insulting others, something we can't tolerate in an inclusive community.

He even keeps detailed logs of obscene messages to keep you in control of your server.

He'll keep your server healthy to keep it growing and maintain a welcoming community!

*This project was started due to a need for moderation and record keeping in discord servers that a single human could not achieve.


To run this code:

  • add a file called .env to the base directory and add you github token as TOKEN and you mongodb uri as URI
  • Add your database name to the dbName varaible and add the collection name to the collectionName variable
  • use npm run build to run the code using nodemon
  • use npm run test to only run index.js once

How to Use:

  1. Run index.js
  2. if any message contains a word from words.txt, it will be deleted and the bot will say "Don't swear here @author"

example gif

  1. Then the message details will be stored in a MongoDB database in the format:

    _id: ObjectId name: "author" username: "username" id: "author ID" time: "day, month, date, year, 24 hour time in realtion to GMT" message: "message content"

For example: mongodb example image


License:

This project is licensed under the Apache Version 2.0 license and can be found in LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published