The code behind Villager Bot, a multipurpose Minecraft-themed Discord bot
Villager Bot is separated into two components; Karen and the clusters. A "cluster" is a group of shards (websockets connected to Discord in this case). Due to the nature of Villager Bot, these clusters need to share state and communicate, which is what Karen facilitates via the use of websockets. Villager Bot is dockerized and this architecture allows scaling while maintaining functionality and easy development.