Change how the Sharding works (Auto Shard Count)

This commit is contained in:
dragonfire535
2017-03-11 13:19:56 -05:00
parent 02c6ab454d
commit b309b1701b
+5 -2
View File
@@ -1,3 +1,6 @@
const Discord = require('discord.js');
const Manager = new Discord.ShardingManager('./index.js');
Manager.spawn(1);
const config = require('./config.json');
const Manager = new Discord.ShardingManager('./index.js', {
token: config.token
});
Manager.spawn();