Format Number Command

This commit is contained in:
Dragon Fire
2021-02-28 15:11:03 -05:00
parent b6c71a1b5f
commit d8dfefbd08
2 changed files with 26 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
const Command = require('../../structures/Command');
const { formatNumber } = require('../../util/Util');
module.exports = class FormatNumberCommand extends Command {
constructor(client) {
super(client, {
name: 'format-number',
aliases: ['format-num', 'pretty-number', 'pretty-num'],
group: 'edit-number',
memberName: 'format-number',
description: 'Formats a number to look more readable.',
args: [
{
key: 'number',
prompt: 'What number do you want to format?',
type: 'float'
}
]
});
}
run(msg, { number }) {
return msg.reply(formatNumber(number));
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "131.0.1",
"version": "131.1.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {