thaldrin/DiscordEvents/shardReconnecting.js

12 lines
414 B
JavaScript
Raw Normal View History

2019-10-09 16:19:30 +00:00
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);
}
}