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
+2 -1
View File
@@ -15,7 +15,7 @@ Xiao is a Discord bot coded in JavaScript with
The bot is no longer available for invite. You can self-host the bot, or use her
on the [home server](https://discord.gg/sbMe32W).
## Commands (294)
## Commands (295)
### Utility:
* **eval**: Executes JavaScript code.
@@ -77,6 +77,7 @@ on the [home server](https://discord.gg/sbMe32W).
* **roll**: Rolls a dice with a maximum value of your choice.
* **security-key**: Responds with a random security key.
* **shower-thought**: Responds with a random shower thought, directly from r/Showerthoughts.
* **suggest-command**: Suggests a random command for you to try.
* **superpower**: Responds with a random superpower.
* **user-roulette**: Randomly chooses a member of the server.
* **would-you-rather**: Responds with a random "Would you rather ...?" question.
+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}_
`);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "85.5.1",
"version": "85.6.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {