A modular, event‑driven, fully asynchronous Discord bot built with discord.py 2.x, designed for dramatic flair, clean architecture, and easy self‑hosting.
Created by Nyxen, and the list of message/response lines were made by Microsoft Copilot.
This bot reacts to messages, events, and commands with theatrical flair.
From ellipses to emoji spam to mysterious typing behavior — it notices everything.
Every feature is isolated into its own cog:
core_events— unified message/event dispatchermoderation— banned words, spam detection, link blockingmessages— edit/delete reactions, attachment detectionchaos— dramatic triggers, typing detection, ellipsis reactionsinfo— botinfo, serverinfo, userinfoerror_handler— global command error handling + CSV audit logshelp— fully custom dramatic help command
Uses modern Discord.py 2.x async extension loading with detailed color‑coded console logs.
Replaces the default help system with:
- Full command index
- Per‑cog help
- Per‑command help
- Auto‑generated descriptions for missing help text
All command errors are:
- Shown to the user with dramatic messages
- Logged to console with colorama
- Saved to
logs/command_errors.csvfor clean auditing
A single dispatcher cog (core_events) routes:
on_messageon_message_editon_message_deleteon_typing
to any cog that implements the corresponding handler.
This keeps the bot scalable and prevents command‑breaking conflicts.
git clone https://github.com/developer51709/dramatic-discord-automod.git
cd dramatic-discord-automodpython -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windowspip install -r requirements.txtCreate a config.py file in the project root if it does not already exist:
TOKEN = "YOUR_BOT_TOKEN_HERE"
PREFIX = "!"In the Discord Developer Portal:
- Enable Message Content Intent
- Enable Server Members Intent
- Enable Presence Intent (optional)
python bot.pydramatic-discord-automod/
│
├── bot.py # Main entry point with banner + async cog loader
├── config.py # Token + prefix
├── requirements.txt # Dependencies
├── logs/
│ └── command_errors.csv # Auto-generated error audit log
│
├── cogs/
│ ├── help.py # Dramatic help command
│ ├── core_events.py # Unified event dispatcher
│ ├── moderation.py # Moderation triggers
│ ├── messages.py # Edit/delete/attachment reactions
│ ├── chaos.py # Dramatic message triggers
│ ├── info.py # botinfo/serverinfo/userinfo
│ └── error_handler.py # Global command error handling
│
└── utils/
└── loader.py # JSON line loader for dramatic responses
All command errors are logged to:
logs/command_errors.csv
This file is safe to delete; it will be recreated automatically.
Drop a .py file into /cogs and it will load automatically on startup.
Any cog can implement:
async def handle_message(self, message):
...and it will be called automatically by core_events.py.
Supported handlers:
handle_messagehandle_edithandle_deletehandle_typing
Just define them in your cog — no registration needed.
| Command | Description |
|---|---|
!help |
Dramatic help menu |
!help <command> |
Detailed command info |
!botinfo |
Info about the bot |
!serverinfo |
Info about the server |
!userinfo [member] |
Info about a user |
!roll |
Roll a dice |
!flip |
Flip a coin |
Automatic triggers:
- Banned words
- Blocked links
- Caps abuse
- Emoji spam
- Mass pings
- Spam bursts
- Ellipsis detection
- Question detection
- Lurker detection
- Typing‑but‑stops detection
- Dramatic reactions to greetings
Pull requests are welcome!
If you want to add new dramatic triggers, commands, or cogs, feel free to open an issue or PR.
This project is released under the MIT License.
You are free to modify, distribute, and self‑host the bot.
- Developer: Nyxen
- Framework: discord.py 2.x
- Language: Python 3.10+
This bot is designed to be:
- Easy to understand
- Easy to extend
- Easy to self‑host
- Dramatic by default
If you build something cool with it, feel free to share!