mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Restart -> Shutdown
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "112.19.0",
|
||||
"version": "112.19.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user