From 3ce12b79cd15d94165d6455c52afb4b65822851e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 28 Mar 2020 21:30:48 -0400 Subject: [PATCH] Restart -> Shutdown --- README.md | 2 +- commands/util/{restart.js => shutdown.js} | 12 ++++++------ package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename commands/util/{restart.js => shutdown.js} (61%) diff --git a/README.md b/README.md index a211f711..48909a6e 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Total: 382 * **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). -* **restart:** Restarts the bot. (Owner-Only) +* **shutdown:** Shuts down the bot. (Owner-Only) ### Discord Information: diff --git a/commands/util/restart.js b/commands/util/shutdown.js similarity index 61% rename from commands/util/restart.js rename to commands/util/shutdown.js index 4404c6c2..d142d528 100644 --- a/commands/util/restart.js +++ b/commands/util/shutdown.js @@ -1,13 +1,13 @@ const Command = require('../../structures/Command'); -module.exports = class RestartCommand extends Command { +module.exports = class ShutdownCommand extends Command { constructor(client) { super(client, { - name: 'restart', - aliases: ['die', 'explode', 'shutdown', 'process.exit'], + name: 'shutdown', + aliases: ['die', 'explode', 'restart', 'process.exit'], group: 'util', - memberName: 'restart', - description: 'Restarts the bot.', + memberName: 'shutdown', + description: 'Shuts down the bot.', details: 'Only the bot owner(s) may use this command.', guarded: true, ownerOnly: true, @@ -23,7 +23,7 @@ module.exports = class RestartCommand extends Command { } run(msg, { code }) { - this.client.logger.info('[RESTART] Manually restarted.'); + this.client.logger.info('[SHUTDOWN] Manual shutdown engaged.'); process.exit(code); return null; } diff --git a/package.json b/package.json index 852d30c4..4bb96910 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "112.19.0", + "version": "112.19.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {