Files
xiao/commands/random/suggest-command.js
T
Daniel Odendahl Jr b8915dc299 Tenor Command
2018-09-27 00:08:01 +00:00

23 lines
605 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', '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}_
`);
}
};