From 3e30cdc6a3123f785a3332a29044d49f09eab285 Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Thu, 22 Oct 2026 03:36:55 +0300 Subject: [PATCH] fix(stats): display current and total shards as current/total --- commands/stats.mjs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/commands/stats.mjs b/commands/stats.mjs index ce336ca..8c15a63 100644 --- a/commands/stats.mjs +++ b/commands/stats.mjs @@ -291,13 +291,10 @@ function getShardInfo(client, guildId) { try { const isSharded = ShardingUtils.isShardedProcess(); const currentShard = ShardingUtils.shardIdForGuild(client, guildId); - if (isSharded) { - const totalShards = Number(process.env.FLUXER_SHARD_COUNT) || 1; - return totalShards > 1 ? `${currentShard}/${totalShards}` : `${currentShard}`; - } - return `${currentShard}`; + const totalShards = isSharded ? (Number(process.env.FLUXER_SHARD_COUNT) || 1) : 1; + return `${currentShard}/${totalShards}`; } catch (_) { - return "0"; + return "0/1"; } }