mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Add last-run file support
This commit is contained in:
@@ -24,8 +24,10 @@ module.exports = class ReloadCommand extends Command {
|
||||
|
||||
run(msg, { command }) {
|
||||
this.client.exportCommandLeaderboard();
|
||||
this.client.exportLastRun();
|
||||
command.reload();
|
||||
this.client.importCommandLeaderboard();
|
||||
this.client.importLastRun();
|
||||
return msg.say(`Reloaded the \`${command.name}\` command.`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user