mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Suggest Command Command
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "85.5.1",
|
||||
"version": "85.6.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user