DogeMod is a simple moderation bot for DogeHouse created by TheOtterlord to help protect your room chats.
DogeMod deletes messages that trigger the profanity filter (uses bad-words npm package) and warns the user who sent the message.
You can configure DogeMod to ban a user from the chat after a certain number of infractions.
- Install
nodeandnpm - Download this repo and unzip into an empty directory
- In the directory, run
nmp ito install dependencies - Create a
config.jsonfile in the main directory - Add the following to the
config.jsonfile, replacingBOT_API_KEYwith your bot's key. (find out how to create a bot here)
{
"apiKey": "BOT_API_KEY"
}- Run
npm run start -- <room-id>replacing<room-id>with the room you wish the bot to join - (optional) Add a
banAfterfield to theconfig.jsonfile setting it to the number of infractions to ban a user after (e.g. ban a user after 3 infractions:"banAfter": 3)
If you encounter any problems when using DogeMod, please open a GitHub issue.
DogeMod is open-source and contributions are welcome. If you plan to add a new feature, please open an issue first.
DogeMod is distributed under the MIT license.