Skip to Content

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:

PartStackHosting
Bot + APIdiscord.js, Express 5, MongoDB, DockerHetzner VPS (Caddy TLS)
Analytics UINext.js 16, Appwrite Auth, Chart.js / RechartsVercel

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-key for 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

LayerTechnologies
Botdiscord.js, Node.js, TypeScript, Winston
APIExpress 5, MongoDB, CORS, node-appwrite
DashboardNext.js 16, React 19, Tailwind CSS, shadcn/ui, Appwrite SDK
OpsDocker Compose, Caddy, GitHub Actions (Hetzner), Vercel

On this page