d-zone-org / d-zone

An ambient life simulation driven by user activity within a Discord server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sharding Support

JMTK opened this issue · comments

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);
    });

image

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.