Skip to content

ModerateHatespeech/Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Discord

Automatically moderate subreddits via API

Purpose

The following python script runs a Discord bot that will auto-report content flagged as "Toxic" by our API to a channel. Follow the instructions below to self-host. Note: we recommend one bot instance per server.

If you're just looking to add the bot to your server, use the following link: https://discord.com/api/oauth2/authorize?client_id=984268119797276682&permissions=68608&scope=bot

Requirements

Install requirements:

pip3 install discord.py requests

Required config.json file:

{
  "api_token": "MODERATE_HATESPEECH_API_TOKEN",
  "bot_token": "DISCORD_BOT_TOKEN",
  "channel_id": "CHANNEL_ID_FOR_REPORTS",
  "threshold": 0.5
}

Run bot

About

Automatically moderate discord servers via API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages