thaldrin/DiscordEvents/shardReady.js

17 lines
489 B
JavaScript
Raw Normal View History

2019-10-14 11:19:41 +00:00
const { logChannel } = require("../config");
const util = require("../utils");
module.exports = {
name: "shardReady",
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} is ready`;
await util.log.shardReady(message);
await util.log.shardSpinnerStarted(message);
// if (logs !== undefined) logs.send(message);
}
};