chore: update logging for client ready

This commit is contained in:
Marius Begby committed 2023-08-25 23:08:23 +02:00
1 parent dfea74080e
commit bdaf998e31
1 file changed
+3 -1
+3 -1
View File
@@ -18,15 +18,17 @@ module.exports = {
await client.user.setPresence(presenceStatusOptions); await client.user.setPresence(presenceStatusOptions);
if (loadTestOptions.enabled) { if (loadTestOptions.enabled) {
logger.info(`[Shard ${client.shard.ids[0]}] STARTING LOAD TEST.`);
await startLoadTest(client); await startLoadTest(client);
} }
const channel = await client.channels.cache.get(systemOptions.systemMessageChannelId); const channel = await client.channels.cache.get(systemOptions.systemMessageChannelId);
logger.info(`[Shard ${client.shard.ids[0]}] ALL SHARDS READY`);
// Check if the channel exists in curent shard and send a message // Check if the channel exists in curent shard and send a message
if (channel) { if (channel) {
logger.info( logger.info(
`[Shard ${client.shard.ids[0]}] ALL SHARDS READY, sending system message to channel id ${channel.id}.` `[Shard ${client.shard.ids[0]}] Sending system message for 'allShardsReady' to channel id ${channel.id}.`
); );
channel.send({ channel.send({
embeds: [ embeds: [