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,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;
}