Discord MultiBot & Analytics Platform
Live dashboard: analytics.mohamedlakssirt.tech (sign-in required)
API (production): https://multibot-api.mohamedlakssirt.tech
Backend repository: github.com/thejokers69/Discord-MultiBot
Dashboard repository: github.com/thejokers69/discord-multibot-analytics
Portfolio card: mohamedlakssirt.tech/en/projects
Problem
Discord bots are easy to run, but hard to observe: command volume, latency, and errors usually live only in server logs. This project adds durable metrics, a secured REST API, and a dashboard operators can use without SSH or raw MongoDB access.
Solution
A two-repository system:
| Part | Stack | Hosting |
|---|---|---|
| Bot + API | discord.js, Express 5, MongoDB, Docker | Hetzner VPS (Caddy TLS) |
| Analytics UI | Next.js 16, Appwrite Auth, Chart.js / Recharts | Vercel |
Commands are prefixed with $ on Discord:
$meme— random meme$respond— auto-response$chat [message]— OpenAI-backed chat
The API exposes metrics and logs (7-day aggregates) stored in MongoDB.
Key features
- Multi-command Discord bot with logging and performance tracking
- REST endpoints:
GET /api/metrics,GET /api/logs(optional?command=filter) - Production API auth: Bearer Appwrite JWT from the dashboard; legacy
x-api-keyfor machine callers - Next.js dashboard: metrics cards, charts, log viewer, member settings, auto-refresh
- No browser API key — Next.js route
app/discord-api/[...path]proxies with server-issued JWT - Appwrite team RBAC:
owner,admin,analyst,viewer
Technical stack
| Layer | Technologies |
|---|---|
| Bot | discord.js, Node.js, TypeScript, Winston |
| API | Express 5, MongoDB, CORS, node-appwrite |
| Dashboard | Next.js 16, React 19, Tailwind CSS, shadcn/ui, Appwrite SDK |
| Ops | Docker Compose, Caddy, GitHub Actions (Hetzner), Vercel |
Related docs
- Architecture — auth flow, RBAC, BFF proxy
- Deployment — DNS, Hetzner, Vercel, smoke tests
- All projects — full portfolio list