thaldrin/DiscordEvents/shardReconnecting.js
2019-10-14 13:19:41 +02:00

12 lines
No EOL
414 B
JavaScript
Executable file

const { logChannel } = require('../config');
module.exports = {
name: 'shardReconnecting',
run: async (client) => {
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`;
if (logs) logs.send(message);
console.log(message);
}
}