sudomakecoffee / weatherbot

Discord bot that rolls a d100 for a daily weather event
0 stars 0 forks source link

(feat) Implement sharding #5

Open sudomakecoffee opened 2 years ago

sudomakecoffee commented 2 years ago

Current implementation manages all server connections in a single thread. Discord.js has functionality to put a guild connection on it's own threading, called sharding. Rework the core bot code to take advantage of sharding.

sudomakecoffee commented 2 years ago

Sharding isn't recommended until the bot is in 2000 servers. Punt for future work.

Docs at time of writing: https://discordjs.guide/sharding/