Add Back restart

This commit is contained in:
Daniel Odendahl Jr
2017-06-22 03:20:38 +00:00
parent 5e7a8d17ad
commit 7b5c4e28e4
+5
View File
@@ -79,6 +79,11 @@ client.on('guildDelete', async (guild) => {
dBots(count, client.user.id);
});
client.setTimeout(() => {
console.log(`[RESTART] Shard ${client.shard.id} Restarted.`);
process.exit(0);
});
client.login(TOKEN);
process.on('unhandledRejection', console.error);