From 2d1a9a80b5e994fa2de11355f5baf2fae5dd2666 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Fri, 5 Sep 2025 23:44:42 -0400 Subject: [PATCH] format number --- commands/analyze/waist-hip.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/analyze/waist-hip.js b/commands/analyze/waist-hip.js index f46aad13..e8e45379 100644 --- a/commands/analyze/waist-hip.js +++ b/commands/analyze/waist-hip.js @@ -1,10 +1,11 @@ const Command = require('../../framework/Command'); +const { formatNumber } = require('../../util/Util'); module.exports = class WaistHipCommand extends Command { constructor(client) { super(client, { name: 'waist-hip', - aliases: ['waist-hip-ratio', 'w-h-ratio'], + aliases: ['waist-hip-ratio', 'w-h-ratio', 'whr'], group: 'analyze', description: 'Responds with the waist-hip ratio of measurements.', args: [ @@ -25,7 +26,7 @@ module.exports = class WaistHipCommand extends Command { } run(msg, { waist, hip }) { - const ratio = waist / hip; + const ratio = formatNumber(waist / hip); return msg.say(`The waist-hip ratio of someone with a ${waist} inch waist and ${hip} inch hips is **${ratio}**.`); } };