1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-06 20:37:54 -05:00

add commas to stats, prevent negative /hour nums

This commit is contained in:
Ean Milligan
2025-04-27 00:47:04 -04:00
parent 951d15fcf9
commit ed80e08755

View File

@ -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,
},
],