A Discord moderation, auto mod, and community bot built in Python with discord.py.
- Slash commands:
/ban,/kick,/timeout,/warn,/slowmode,/purge,/nick - Easy role management and moderator action logs
- Anti Spam: Stops rapid message flooding
- Anti Invite: Blocks unauthorized Discord invite links
- Anti Swear: Word filter with automatic warnings
- Join Filter: Blocks suspicious new accounts or unwanted bots
- AFK System: Set an AFK message and it notifies anyone who pings you
- Leveling & XP: Member rank cards and leaderboards
- Giveaways & Reminders: Timed giveaways and reminder alerts
- Backups: Saves server roles and channel setups to JSON files
- Python 3.10+ or Docker
- Bot token from the Discord Developer Portal with Message Content, Server Members, and Presence intents enabled.
-
Clone the repo:
git clone https://github.com/zyrexdz/Zyre-Moderation-Bot.git cd Zyre-Moderation-Bot -
Copy
.env.exampleto.envand add your bot token:cp .env.example .env
-
Run:
docker compose up -d
-
Clone the repo:
git clone https://github.com/zyrexdz/Zyre-Moderation-Bot.git cd Zyre-Moderation-Bot -
Run setup:
- Windows: Run
setup.bat - Linux / Mac: Run
chmod +x setup.sh && ./setup.sh
- Windows: Run
-
Put your bot token and user ID inside
.env. -
Start the bot:
python main.py
DISCORD_TOKEN=your_token_here
BOSS_ID=123456789012345678
COMMAND_PREFIX=/Give the bot Administrator (or Manage Server, Manage Roles, Manage Channels, Kick Members, Ban Members, Moderate Members) so it can moderate without permission errors.
MIT
