mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
24 lines
543 B
JavaScript
24 lines
543 B
JavaScript
const Command = require('../../framework/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', 'number', 'num'],
|
|
group: 'edit-number',
|
|
description: 'Formats a number to look more readable.',
|
|
args: [
|
|
{
|
|
key: 'number',
|
|
type: 'float'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { number }) {
|
|
return msg.reply(formatNumber(number));
|
|
}
|
|
};
|