PlayStorm Core Discord Bot
This bot is the backbone of the PlayStorm Discord server. It automates tedious administrative tasks, allowing the club leads to focus on organizing events. It features a custom permission system that rivals enterprise software.
Technology Stack
System Architecture
Language
TypeScript for type-safety and better maintenance.
ORM
Prisma for interacting with a PostgreSQL database.
Infrastructure
Containerized using Docker for easy deployment.
The Challenges
Handling high volumes of concurrent Discord events.
Managing complex state across persistent voice channels.
Ensuring the bot stays online 24/7 during major tournaments.
The Solutions
Implemented an event handler with rate-limiting to stay within Discord API bounds.
Used a centralized database to track state instead of in-memory storage.
Deployed with Docker and automated health checks to ensure near 100% uptime.
Key Results & Metrics
Automated role assignment
Database-backed persistence
Containerized deployment