Sheet 03 / 10
NYXBOT
Modular moderation and management bot for Discord servers. The bot and the web panel share the same data; each server only registers commands for the modules it has enabled.
- Subject
- Bot · Backend
- Platform
- Discord · Web panel
- Source
- Private repo
- Date
- 2026
- Status
- In development
NyxBot is a moderation and management bot for Discord servers. Commands are split into nine modules: moderation, security, economy, giveaways, music, private rooms, fun, utilities and management. Admins switch modules on and off in an Express-based web panel; the bot registers only the enabled modules' commands per server, so a disabled module's commands never appear in the menu. The bot and the panel share one MariaDB database and send events to each other over Redis, so a setting saved in the panel reaches the bot immediately. Replies are rendered with Discord Components V2. The backend has tests, and a security pass closed a privilege escalation and a permission gap in prefix commands. The notes cover command registration, bot–panel sync and that security pass.
01Views6 views
02Schema and notes
- Commands load per module; a module disabled on a server registers no commands.
- The bot and the Express-based web panel use the same database.
- Persistent data in MariaDB, cache in Redis.
- Replies are built with Discord Components V2.
- Privilege escalation and prefix permission holes were closed; the backend has tests.
03Parts list5 parts
| Item | Part | Description |
|---|---|---|
| 01 | Command modules | Moderation, security, economy, giveaways, music, private rooms, fun, utilities, management |
| 02 | Module loader | Registers enabled modules' commands per server |
| 03 | Cards | Welcome, rank and economy cards; 20 designs, 26 colours |
| 04 | Web panel | Express API, server settings and logs |
| 05 | Data layer | MariaDB + Redis (ioredis) |
04Notes3 notes
| No | Note | Topic |
|---|---|---|
| N1 | Per-guild command registration | A disabled module's slash commands never show in the menu; one PUT, batching, hash comparison |
| N2 | Bot · panel sync | A setting saved in the panel reaches the bot at once; Redis pub/sub, targeted cache invalidation |
| N3 | Security pass | Privilege escalation via an unverified token, the prefix permission gap, the transcript iframe; how they were found and closed |
—End of sheetdrawn by MUHAMMEDPYZ