Toxicity Scanner Discord Bot is a Python-based bot that uses Google's Perspective API to scan messages in a Discord server for toxic content. The bot can take various actions such as deleting toxic messages, warning users, or even banning them based on the level of toxicity detected.
- Real-time Toxicity Detection: Scans messages in real-time for toxic content using Google's Perspective API.
- Configurable Actions: Take actions such as deleting messages, warning users, muting users, or banning users based on the detected toxicity level.
- Customizable Settings: Adjust toxicity thresholds and configure which actions to take for different levels of toxicity.
-
Clone the repository:
git clone https://github.com/Aviralansh/dracuzz.git cd dracuzz -
Create a virtual environment and activate it:
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your environment variables:
- Create a
.envfile in the project root directory and add your Discord bot token and Perspective API key:
DISCORD_TOKEN=your_discord_token_here PERSPECTIVE_API_KEY=your_perspective_api_key_here - Create a
-
Run the bot:
python bot.py
-
Invite the bot to your Discord server using the OAuth2 URL generated for your bot.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
- Discord.py - Python library for interacting with the Discord API.
- Perspective API - API for detecting toxic content.