diff --git a/README.md b/README.md index 9b01f053..c739371f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Xiao.js b/Xiao.js index d86a07fb..daaa9637 100644 --- a/Xiao.js +++ b/Xiao.js @@ -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, diff --git a/commands/util/command-leaderboard-export.js b/commands/util-owner/command-leaderboard-export.js similarity index 97% rename from commands/util/command-leaderboard-export.js rename to commands/util-owner/command-leaderboard-export.js index 6f3c9f88..34791d3d 100644 --- a/commands/util/command-leaderboard-export.js +++ b/commands/util-owner/command-leaderboard-export.js @@ -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.', diff --git a/commands/util/command-leaderboard-import.js b/commands/util-owner/command-leaderboard-import.js similarity index 97% rename from commands/util/command-leaderboard-import.js rename to commands/util-owner/command-leaderboard-import.js index 22e087f3..2de08b08 100644 --- a/commands/util/command-leaderboard-import.js +++ b/commands/util-owner/command-leaderboard-import.js @@ -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.', diff --git a/commands/readme/generate-commands.js b/commands/util-owner/generate-commands.js similarity index 97% rename from commands/readme/generate-commands.js rename to commands/util-owner/generate-commands.js index 7ccd7949..bc3e4829 100644 --- a/commands/readme/generate-commands.js +++ b/commands/util-owner/generate-commands.js @@ -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.', diff --git a/commands/readme/generate-credit.js b/commands/util-owner/generate-credit.js similarity index 98% rename from commands/readme/generate-credit.js rename to commands/util-owner/generate-credit.js index 19a0a49b..e86dc3d7 100644 --- a/commands/readme/generate-credit.js +++ b/commands/util-owner/generate-credit.js @@ -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.', diff --git a/commands/readme/generate-process-env.js b/commands/util-owner/generate-process-env.js similarity index 97% rename from commands/readme/generate-process-env.js rename to commands/util-owner/generate-process-env.js index 5a027dc8..b8be4433 100644 --- a/commands/readme/generate-process-env.js +++ b/commands/util-owner/generate-process-env.js @@ -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.', diff --git a/commands/util/ip.js b/commands/util-owner/ip.js similarity index 96% rename from commands/util/ip.js rename to commands/util-owner/ip.js index be07029e..566af305 100644 --- a/commands/util/ip.js +++ b/commands/util-owner/ip.js @@ -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.', diff --git a/commands/util/shutdown.js b/commands/util-owner/shutdown.js similarity index 96% rename from commands/util/shutdown.js rename to commands/util-owner/shutdown.js index 0a8f62ed..15be548b 100644 --- a/commands/util/shutdown.js +++ b/commands/util-owner/shutdown.js @@ -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.', diff --git a/commands/edit-text/webhook.js b/commands/util-owner/webhook.js similarity index 97% rename from commands/edit-text/webhook.js rename to commands/util-owner/webhook.js index 3e96375c..ae8d5d04 100644 --- a/commands/edit-text/webhook.js +++ b/commands/util-owner/webhook.js @@ -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.', diff --git a/package.json b/package.json index 285523f8..de09f840 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.2.3", + "version": "116.2.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {