Architecture
To facilitate quick and easy deployment, the Discord bot has been split into 2 main parts.
- Makes persistent connection to Discord and database.
- Arbitrary JavaScript logic can be deployed to the runtime without restarting the server.
- Handles events from Discord (and other event sources) but delegate its behavior to the logic.
- Rarely restarted.
- Contains most of the code.
- Deployed to the runtime when changed.
- Gets called by the runtime when there are events from Discord (and other event sources).
- Deployed when hitting save.
- Written in TypeScript.
Features
Answer Buzzer
https://docs.google.com/presentation/d/1IcLUQDEtZ0r58aHVIQcHC0e2iAhpbQzGXy0OylKROAE/edit?usp=sharing