diff --git a/README.md b/README.md index 0ce273c7..cf1cc026 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/commands/util/options.js b/commands/util/options.js new file mode 100644 index 00000000..d71b6f68 --- /dev/null +++ b/commands/util/options.js @@ -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. + + \`\` Disables leave messages (System Channel). + `); + } +}; diff --git a/package.json b/package.json index 0435084a..7ac519e8 100644 --- a/package.json +++ b/package.json @@ -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",