Moldoteck / ToxMod

Telegram bot that detects toxic comments based on Perspective API
MIT License
6 stars 0 forks source link
bot google google-api perspective-api telegram telegram-bot toxic toxic-comments toxicity toxicity-detection

Telegram bot for moderating toxic messages in group chats

@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)

API's:

Google Perspective API

Installation and local launch

  1. Clone this repo: git clone https://github.com/Moldoteck/ToxMod
  2. Launch the mongo database locally
  3. Create .env with the environment variables listed below
  4. Run yarn install in the root folder
  5. Run yarn develop

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

Environment variables

Also, please, consider looking at .env.sample.

License

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