Restart -> Shutdown

This commit is contained in:
Dragon Fire
2020-03-28 21:30:48 -04:00
parent 05dc80daf6
commit 3ce12b79cd
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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:
@@ -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;
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "112.19.0",
"version": "112.19.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {