MattIPv4 / DNS-over-Discord

1.1.1.1 works from a Discord server, thanks to the 1.1.1.1 bot. Invite the bot to your Discord server to start using DNS over Discord.
https://dns-over-discord.v4.wtf/invite
Apache License 2.0
281 stars 28 forks source link

Implement sharding #13

Closed MattIPv4 closed 3 years ago

MattIPv4 commented 3 years ago

As the bot begins to grow, there will be a point where it needs to support sharding.

It'd be great if it was still a single executable to be run, that handled spawning all the required shards.

andersfylling commented 3 years ago

Disgord handles sharding behind the scenes. So if Discord suddenly disconnect your bot, due to too few shards, Disgord will upscale the number of shards and reconnect. Hope this helps!

MattIPv4 commented 3 years ago

Oh, cool, awesome! I'll close this out then, TIL.