Suggest Command Command

This commit is contained in:
Dragon Fire
2018-07-26 22:40:24 -04:00
parent 2a17d82b61
commit 7d5c0a0696
3 changed files with 25 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
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}_
`);
}
};