The hate-speech detection bot and server to get details.
The bot provides 2 commands :
/sync_commands
: To sync slash commands to server during development./get_top
: Get a sorted list of offenders and their offense scores.
The flask API provides 2 endpoints :
/getGuilds
: Get a list of guilds where the bot is active./guild/getTop?guild=<guild_id>
: Get the sorted list of offender from the guild.
- Refer to the
.env.sample
file to create a populated.env
file to make the project work.
The app can be launched using the command : python bot/main.py
from the root of the repository.
Increases offense rating on negative comments, but keeps them same if comment is not offensive.