Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
chore: update logging for client ready
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Aug 25, 2023
1 parent dfea740 commit bdaf998
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/events/client/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ module.exports = {
await client.user.setPresence(presenceStatusOptions);

if (loadTestOptions.enabled) {
logger.info(`[Shard ${client.shard.ids[0]}] STARTING LOAD TEST.`);
await startLoadTest(client);
}

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
if (channel) {
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({
embeds: [
Expand Down

0 comments on commit bdaf998

Please sign in to comment.