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.
- 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
- Run index.js
- if any message contains a word from words.txt, it will be deleted and the bot will say "Don't swear here @author"
-
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"
This project is licensed under the Apache Version 2.0 license and can be found in LICENSE.