Directly import command-leaderboard

This commit is contained in:
Dragon Fire
2020-06-04 14:01:25 -04:00
parent a6b8ff5b19
commit 672dc6641b
+1 -1
View File
@@ -48,7 +48,7 @@ module.exports = class CommandLeaderboardImportCommand extends Command {
if (typeof value !== 'number') continue;
const found = this.client.registry.commands.get(id);
if (!found || found.uses === undefined) continue;
found.uses += value;
found.uses = value;
}
return msg.say('Successfully imported command leaderboard.');
}