mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Suggest Command Command
This commit is contained in:
@@ -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}_
|
||||
`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user