thaldrin/DiscordEvents/shardReconnecting.js
2020-01-31 21:06:11 +01:00

14 lines
No EOL
417 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);
}
}