2020-10-17 05:00:41 +00:00
|
|
|
const discord = require('discord.js');
|
|
|
|
const config = require('../config.json');
|
2020-08-18 04:58:36 +00:00
|
|
|
|
2020-10-17 05:00:41 +00:00
|
|
|
const manager = new discord.ShardingManager('./index.js', {
|
|
|
|
totalShards: 'auto',
|
|
|
|
token: config.token
|
2020-08-18 04:58:36 +00:00
|
|
|
});
|
|
|
|
|
2020-10-17 05:00:41 +00:00
|
|
|
manager.on('shardCreate', (shard) => {
|
|
|
|
console.log('Shard ' + shard.id + ' launched');
|
2020-08-18 04:58:36 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
manager.spawn();
|