From c440b27e069a0c859cea58ee8697dab8f702866c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 12 Oct 2020 17:08:47 -0400 Subject: [PATCH] format number in wyptb --- commands/games-sp/will-you-press-the-button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-sp/will-you-press-the-button.js b/commands/games-sp/will-you-press-the-button.js index 94ffe84e..fa31fc76 100644 --- a/commands/games-sp/will-you-press-the-button.js +++ b/commands/games-sp/will-you-press-the-button.js @@ -3,7 +3,7 @@ const request = require('node-superfetch'); const Entities = require('html-entities').AllHtmlEntities; const entities = new Entities(); const { stripIndents } = require('common-tags'); -const { verify } = require('../../util/Util'); +const { verify, formatNumber } = require('../../util/Util'); module.exports = class WillYouPressTheButtonCommand extends Command { constructor(client) { @@ -45,7 +45,7 @@ module.exports = class WillYouPressTheButtonCommand extends Command { this.client.games.delete(msg.channel.id); return msg.reply(stripIndents` **${Math.round(((verification ? dilemma.yes : dilemma.no) / totalVotes) * 100)}%** of people agree! - Yes ${dilemma.yes} - ${dilemma.no} No + Yes ${formatNumber(dilemma.yes)} - ${formatNumber(dilemma.no)} No `); } catch (err) { this.client.games.delete(msg.channel.id);