From e2f55c048c72e9a4c752a251dd8a7a0f98b20455 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 29 Nov 2020 10:54:36 -0500 Subject: [PATCH] Format number in uses --- commands/util-public/prefix.js | 2 +- commands/util-public/uses.js | 3 ++- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/util-public/prefix.js b/commands/util-public/prefix.js index 686ed830..c3207950 100644 --- a/commands/util-public/prefix.js +++ b/commands/util-public/prefix.js @@ -15,7 +15,7 @@ module.exports = class PrefixCommand extends Command { run(msg) { const prefix = msg.guild ? msg.guild.commandPrefix : this.client.commandPrefix; return msg.reply(stripIndents` - ${prefix ? `The command prefix is \`\`${prefix}\`\`.` : 'There is no command prefix.'} + ${prefix ? `The command prefix is \`${prefix}\`.` : 'There is no command prefix.'} To run a command, use ${msg.anyUsage('')}. `); } diff --git a/commands/util-public/uses.js b/commands/util-public/uses.js index b8ef2baa..4d67146b 100644 --- a/commands/util-public/uses.js +++ b/commands/util-public/uses.js @@ -1,4 +1,5 @@ const Command = require('../../structures/Command'); +const { formatNumber } = require('../../util/Util'); module.exports = class UsesCommand extends Command { constructor(client) { @@ -21,6 +22,6 @@ module.exports = class UsesCommand extends Command { run(msg, { command }) { if (command.uses === undefined) return msg.reply('That command\'s usage stats aren\'t being tracked.'); - return msg.say(`The \`${command.name}\` command has been used **${command.uses}** times.`); + return msg.say(`The \`${command.name}\` command has been used **${formatNumber(command.uses)}** times.`); } }; diff --git a/package.json b/package.json index e07bc0f2..d4e0b8b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "123.0.0", + "version": "123.0.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {