mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add Owner Utility Group
This commit is contained in:
@@ -231,21 +231,28 @@ Total: 457
|
||||
* **eval:** Executes JavaScript code. (Owner-Only)
|
||||
* **changelog:** Responds with the bot's latest 10 commits.
|
||||
* **cloc:** Responds with the bot's code line count.
|
||||
* **command-leaderboard-export:** Exports a command leaderboard JSON file. (Owner-Only)
|
||||
* **command-leaderboard-import:** Imports a command leaderboard JSON file. (Owner-Only)
|
||||
* **command-leaderboard:** Responds with the bot's most used commands.
|
||||
* **credit:** Responds with a command's credits list.
|
||||
* **donate:** Responds with the bot's donation links.
|
||||
* **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.
|
||||
* **ip:** Responds with the IP address the bot's server is running on. (Owner-Only)
|
||||
* **options:** Responds with a list of server options.
|
||||
* **ping:** Checks the bot's ping to the Discord server.
|
||||
* **report:** Reports something to the bot owner(s).
|
||||
* **shutdown:** Shuts down the bot. (Owner-Only)
|
||||
* **uses:** Responds with a command's usage stats.
|
||||
|
||||
### Utility (Owner):
|
||||
|
||||
* **command-leaderboard-export:** Exports a command leaderboard JSON file. (Owner-Only)
|
||||
* **command-leaderboard-import:** Imports a command leaderboard JSON file. (Owner-Only)
|
||||
* **generate-commands:** Generates the commands list for Xiao's README. (Owner-Only)
|
||||
* **generate-credit:** Generates the credit list for Xiao's README. (Owner-Only)
|
||||
* **generate-process-env:** Generates a backup list of Xiao's `process.env`. (Owner-Only)
|
||||
* **ip:** Responds with the IP address the bot's server is running on. (Owner-Only)
|
||||
* **shutdown:** Shuts down the bot. (Owner-Only)
|
||||
* **webhook:** Posts a message to the webhook defined in the bot owner's `process.env`. (Owner-Only)
|
||||
|
||||
### Discord Information:
|
||||
|
||||
* **avatar:** Responds with a user's avatar.
|
||||
@@ -679,7 +686,6 @@ Total: 457
|
||||
* **upside-down:** Flips text upside-down.
|
||||
* **url-decode:** Decodes URL characters to regular characters.
|
||||
* **url-encode:** Encodes text to URL-friendly characters.
|
||||
* **webhook:** Posts a message to the webhook defined in the bot owner's `process.env`. (Owner-Only)
|
||||
* **yoda:** Converts text to Yoda speak.
|
||||
* **zalgo:** Converts text to zalgo.
|
||||
|
||||
@@ -742,12 +748,6 @@ Total: 457
|
||||
* **wave:** Waves at a user.
|
||||
* **wink:** Winks at a user.
|
||||
|
||||
### README Generators:
|
||||
|
||||
* **generate-commands:** Generates the commands list for Xiao's README. (Owner-Only)
|
||||
* **generate-credit:** Generates the credit list for Xiao's README. (Owner-Only)
|
||||
* **generate-process-env:** Generates a backup list of Xiao's `process.env`. (Owner-Only)
|
||||
|
||||
## Other Features
|
||||
|
||||
Some Xiao features aren't technically commands, but are part of Xiao
|
||||
|
||||
@@ -17,6 +17,7 @@ client.registry
|
||||
.registerTypesIn(path.join(__dirname, 'types'))
|
||||
.registerGroups([
|
||||
['util', 'Utility'],
|
||||
['util-owner', 'Utility (Owner)'],
|
||||
['info', 'Discord Information'],
|
||||
['random-res', 'Random Response'],
|
||||
['random-img', 'Random Image'],
|
||||
@@ -36,8 +37,7 @@ client.registry
|
||||
['voice', 'Voice-Based'],
|
||||
['phone', 'Phone'],
|
||||
['other', 'Other'],
|
||||
['roleplay', 'Roleplay'],
|
||||
['readme', 'README Generators']
|
||||
['roleplay', 'Roleplay']
|
||||
])
|
||||
.registerDefaultCommands({
|
||||
help: false,
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ module.exports = class CommandLeaderboardExportCommand extends Command {
|
||||
'export-command-lb',
|
||||
'export-command-leaderboard'
|
||||
],
|
||||
group: 'util',
|
||||
group: 'util-owner',
|
||||
memberName: 'command-leaderboard-export',
|
||||
description: 'Exports a command leaderboard JSON file.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
+1
-1
@@ -13,7 +13,7 @@ module.exports = class CommandLeaderboardImportCommand extends Command {
|
||||
'import-command-lb',
|
||||
'import-command-leaderboard'
|
||||
],
|
||||
group: 'util',
|
||||
group: 'util-owner',
|
||||
memberName: 'command-leaderboard-import',
|
||||
description: 'Imports a command leaderboard JSON file.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
@@ -5,7 +5,7 @@ module.exports = class GenerateCommandsCommand extends Command {
|
||||
super(client, {
|
||||
name: 'generate-commands',
|
||||
aliases: ['gen-commands', 'generate-cmds', 'gen-cmds'],
|
||||
group: 'readme',
|
||||
group: 'util-owner',
|
||||
memberName: 'generate-commands',
|
||||
description: 'Generates the commands list for Xiao\'s README.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
@@ -6,7 +6,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
||||
super(client, {
|
||||
name: 'generate-credit',
|
||||
aliases: ['gen-credit'],
|
||||
group: 'readme',
|
||||
group: 'util-owner',
|
||||
memberName: 'generate-credit',
|
||||
description: 'Generates the credit list for Xiao\'s README.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
+1
-1
@@ -7,7 +7,7 @@ module.exports = class GenerateProcessEnvCommand extends Command {
|
||||
super(client, {
|
||||
name: 'generate-process-env',
|
||||
aliases: ['gen-process-env', 'generate-env', 'gen-env'],
|
||||
group: 'readme',
|
||||
group: 'util-owner',
|
||||
memberName: 'generate-process-env',
|
||||
description: 'Generates a backup list of Xiao\'s `process.env`.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
@@ -5,7 +5,7 @@ module.exports = class IpCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'ip',
|
||||
group: 'util',
|
||||
group: 'util-owner',
|
||||
memberName: 'ip',
|
||||
description: 'Responds with the IP address the bot\'s server is running on.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
@@ -5,7 +5,7 @@ module.exports = class ShutdownCommand extends Command {
|
||||
super(client, {
|
||||
name: 'shutdown',
|
||||
aliases: ['die', 'restart', 'process.exit'],
|
||||
group: 'util',
|
||||
group: 'util-owner',
|
||||
memberName: 'shutdown',
|
||||
description: 'Shuts down the bot.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
@@ -5,7 +5,7 @@ module.exports = class WebhookCommand extends Command {
|
||||
super(client, {
|
||||
name: 'webhook',
|
||||
aliases: ['rin', 'rin-say'],
|
||||
group: 'edit-text',
|
||||
group: 'util-owner',
|
||||
memberName: 'webhook',
|
||||
description: 'Posts a message to the webhook defined in the bot owner\'s `process.env`.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.2.3",
|
||||
"version": "116.2.4",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user