Files
xiao/commands/random/suggest-command.js
T
Dragon Fire 540a1b601c Fix
2020-02-25 16:27:45 -05:00

23 lines
594 B
JavaScript

const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
module.exports = class SuggestCommandCommand extends Command {
constructor(client) {
super(client, {
name: 'suggest-command',
aliases: ['command-suggestion', 'command-suggest'],
group: 'random',
memberName: 'suggest-command',
description: 'Suggests a random command for you to try.'
});
}
run(msg) {
const command = this.client.registry.commands.random();
return msg.say(stripIndents`
Have you tried **${command.name}**?
_${command.description}_
`);
}
};