mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Export command leaderboard on shutdown command
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user