Files
xiao/commands/util/uses.js
T
Dragon Fire 2a11f936ef Uses Command
2020-06-01 23:43:30 -04:00

28 lines
755 B
JavaScript

const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const { embedURL } = require('../../util/Util');
module.exports = class UsesCommand extends Command {
constructor(client) {
super(client, {
name: 'uses',
group: 'util',
memberName: 'uses',
description: 'Responds with a command\'s usage stats.',
guarded: true,
args: [
{
key: 'command',
prompt: 'Which command would you like to view the uses of?',
type: 'command'
}
]
});
}
run(msg, { command }) {
if (command.uses === undefined) return msg.say('This command\'s usage stats aren\'t being tracked.');
return msg.say(`The \`${command.name}\` command has been used **${command.uses}** times.`);
}
};