mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Options Command
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user