Export command leaderboard on shutdown command

This commit is contained in:
Dragon Fire
2020-06-07 08:54:04 -04:00
parent a908a671d0
commit c0cda06749
17 changed files with 19 additions and 17 deletions
+2
View File
@@ -23,6 +23,8 @@ module.exports = class ShutdownCommand extends Command {
}
run(msg, { code }) {
this.uses++;
this.client.exportCommandLeaderboard();
this.client.logger.info('[SHUTDOWN] Manual shutdown engaged.');
process.exit(code);
return null;