dettmer.dev
← works
Discord Bot + REST API

Discord Community Management Bot

Discord bot for a gaming community: 22 hot-reloadable modules for game stats, tickets, memes, moderation and analytics, with a REST API for the admin panel.

inactive

It started as a small bot for one Discord server and grew with the community: Rocket League stats, Warframe market prices, a meme generator, support tickets and an analytics dashboard. In the end it was 22 modules (cogs), each one reloadable on its own, so a fix to tickets never meant restarting the whole bot.

Features

  • Game integrations. Rocket League rank tracking with rank-up announcements, Warframe market prices and live alerts.
  • Tickets. Real-time support with transcripts by email, auto-archiving and the admin panel as the moderator’s side.
  • Memes. Daily posts from Reddit and Lemmy, and a generator with over 100 templates.
  • Analytics. Session tracking, user growth and device statistics.
  • Moderation. An interactive panel for mute, kick, ban and warn.
  • Server management. Generated changelogs, to-do lists, a welcome flow and channel controls.

How it is built

discord.py handles slash commands and events; a separate Flask API, split into blueprints for auth, analytics, tickets and memes, serves the admin panel with JWT authentication and WebSocket updates. The API began as one large file and was refactored into that structure once it got hard to maintain.

Data lives in SQLite through SQLAlchemy: partitioned analytics tables, indexed queries and cached aggregates keep it fast without the weight of a separate database server. Everything runs in Docker, identical in development and production.

The project is no longer in active development.

platform
Discord Bot + REST API
stack
Python 3.11+, Discord.py 2.0+, Flask 3.0+, SQLite, Docker