Files
xiao/commands/number-edit/character-count.js
T
2018-10-13 02:28:07 +00:00

26 lines
630 B
JavaScript

const Command = require('../../structures/Command');
const { formatNumber } = require('../../util/Util');
module.exports = class CharacterCountCommand extends Command {
constructor(client) {
super(client, {
name: 'character-count',
aliases: ['characters', 'chars', 'length'],
group: 'number-edit',
memberName: 'character-count',
description: 'Responds with the character count of text.',
args: [
{
key: 'text',
prompt: 'What text would you like to get the character count of?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.reply(formatNumber(text.length));
}
};