aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/message/levels.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/listeners/message/levels.ts b/src/listeners/message/levels.ts
index 7aa3403..0767286 100644
--- a/src/listeners/message/levels.ts
+++ b/src/listeners/message/levels.ts
@@ -25,11 +25,11 @@ export default class LevelListener extends BotListener {
id: message.author.id
}
});
- const xpToGive = Level.genRandomizedXp()
+ const xpToGive = Level.genRandomizedXp();
user.xp += xpToGive;
await user.save();
console.log(`Gave XP to ${message.author.tag}: ${xpToGive}xp`);
- this.levelCooldowns.add(message.author.id)
- setTimeout(() => this.levelCooldowns.delete(message.author.id), 60_000)
+ this.levelCooldowns.add(message.author.id);
+ setTimeout(() => this.levelCooldowns.delete(message.author.id), 60_000);
}
}