@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
git clone https://github.com/Moldoteck/ToxMod
.env
with the environment variables listed belowyarn install
in the root folderyarn 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