@ToxModBot
Tired of moderating endless messages in group chats? Try ToxMod.
This bot can warn users if their message can be toxic to someone and it can help moderating group messages, by sending to moderators a message with link to possible toxic messages.
doNotStore
flag is set to true in order to preserve better privacy for message content (it will not be stored on servers)
Google Perspective API
- Clone this repo:
git clone https://github.com/Moldoteck/ToxMod
- Launch the mongo database locally
- Create
.env
with the environment variables listed below - Run
yarn install
in the root folder - Run
yarn develop
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
TOKEN
— Telegram bot tokenMONGO
— URL of the mongo databasePERSPECTIVEKEY
— Token for Google Perspective API. More info here: https://perspectiveapi.comHUGGINGFACEKEY
— Token for huggingface(DEPRECATED)
Also, please, consider looking at .env.sample
.
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!
Inspired from here: https://github.com/backmeupplz/telegraf-template