2020-01-31 20:06:11 +00:00
|
|
|
const {
|
|
|
|
logChannel
|
|
|
|
} = require('../config');
|
2019-10-09 16:19:30 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: 'shardReconnecting',
|
|
|
|
run: async (client) => {
|
2020-01-31 20:06:11 +00:00
|
|
|
const logs = client.channels.get(logChannel)
|
|
|
|
const message = `Shard ${client.options.shards[client.options.shards.length - 1] + 1}/${client.options.shards.length} changed status to reconnecting`;
|
2019-10-09 16:19:30 +00:00
|
|
|
|
|
|
|
if (logs) logs.send(message);
|
|
|
|
console.log(message);
|
|
|
|
}
|
|
|
|
}
|