Skip to content

Commit

Permalink
Log total shard count
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Jan 6, 2025
1 parent fb316ba commit 93be51d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ try {
logger.info(`Shard ${shard.id} connected to Discord's Gateway.`);
});
});
await manager.spawn();

const shards = await manager.spawn();
await logger.info(`Launched ${shards.size} shards`);
} catch (error) {
try {
await logger.critical('Shard Manager crashed', error);
Expand Down

0 comments on commit 93be51d

Please sign in to comment.