d-zone
d-zone copied to clipboard
Sharding Support
My bot has 4k servers so unfortunately the current implementation doesn't allow me to use my bot. I changed the disconnect to show me what was wrong:
bot.on('disconnect', function(e) {
console.log("Bot disconnected, reconnecting...", e);
setTimeout(function(){
bot.connect(); //Auto reconnect after 5 seconds
},5000);
});

More info: https://discordapp.com/developers/docs/topics/gateway#sharding
Sorry about that, I never designed for a bot so huge. Sharding may be supported in the rewrite, no ETA.