Options Command

This commit is contained in:
Dragon Fire
2020-01-11 16:03:19 -05:00
parent 301ab82be2
commit f3450df9c8
3 changed files with 28 additions and 3 deletions
+2 -1
View File
@@ -57,7 +57,7 @@ Xiao is a Discord bot coded in JavaScript with
* [Rando Cardrissian](https://github.com/dragonfire535/rando-cardrissian) is a Cards Against Humanity bot, whose features were originally built into Xiao.
## Commands (349)
## Commands (350)
### Utility:
* **eval:** Executes JavaScript code.
@@ -67,6 +67,7 @@ Xiao is a Discord bot coded in JavaScript with
* **help:** Displays a list of available commands, or detailed information for a specific command.
* **info:** Responds with detailed bot information.
* **invite:** Responds with the bot's invite links.
* **options:** Responds with a list of server options.
* **ping:** Checks the bot's ping to the Discord server.
### Discord Information:
+24
View File
@@ -0,0 +1,24 @@
const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
module.exports = class OptionsCommand extends Command {
constructor(client) {
super(client, {
name: 'options',
aliases: ['options-list'],
group: 'util',
memberName: 'options',
description: 'Responds with a list of server options.',
guarded: true
});
}
run(msg) {
return msg.say(stripIndents`
__**Server Options**__
Place the option in the appropriate channel's topic to use.
\`<xiao:disable-leave>\` Disables leave messages (System Channel).
`);
}
};
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "109.5.1",
"version": "109.6.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {
@@ -40,7 +40,7 @@
"discord.js-commando": "github:discordjs/Commando",
"dotenv": "^8.2.0",
"gifencoder": "^2.0.1",
"mathjs": "^6.4.0",
"mathjs": "^6.5.0",
"moment": "^2.24.0",
"moment-duration-format": "^2.3.2",
"moment-timezone": "^0.5.27",