From ed80e08755d0417629f0f8986fc8c74e74b25cb7 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Sun, 27 Apr 2025 00:47:04 -0400 Subject: [PATCH] add commas to stats, prevent negative /hour nums --- src/commandUtils.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commandUtils.ts b/src/commandUtils.ts index 14a2a72..4e38deb 100644 --- a/src/commandUtils.ts +++ b/src/commandUtils.ts @@ -55,27 +55,27 @@ export const generateStats = ( fields: [ { name: 'Guilds:', - value: `${guildCount}`, + value: `${guildCount.toLocaleString()}`, inline: true, }, { name: 'Channels:', - value: `${channelCount}`, + value: `${channelCount.toLocaleString()}`, inline: true, }, { name: 'Active Members:', - value: `${memberCount}`, + value: `${memberCount.toLocaleString()}`, inline: true, }, { name: 'Roll Commands:', - value: `${rollCount}\n(${rollRate.toFixed(2)} per hour)`, + value: `${rollCount.toLocaleString()}\n(${Math.abs(rollRate).toFixed(2)} per hour)`, inline: true, }, { name: 'Utility Commands:', - value: `${utilityCount}\n(${utilityRate.toFixed(2)} per hour)`, + value: `${utilityCount.toLocaleString()}\n(${Math.abs(utilityRate).toFixed(2)} per hour)`, inline: true, }, ],