Add last-run file support

This commit is contained in:
Dragon Fire
2021-02-01 21:51:00 -05:00
parent 9d4b525333
commit 50de60cd1f
9 changed files with 117 additions and 3 deletions
+2
View File
@@ -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.`);
}
};