aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-05-15 23:37:17 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-05-15 23:37:17 -0400
commit84096890aca4a8c8604b0727cd61294d7d9c2619 (patch)
tree42b1d4705225bf534ebac099b04304974af8d27c /src/listeners
parent2d76de5e1cb34596cbe23731352fab1a3d09dfa8 (diff)
downloadtanzanite-84096890aca4a8c8604b0727cd61294d7d9c2619.tar.gz
tanzanite-84096890aca4a8c8604b0727cd61294d7d9c2619.tar.bz2
tanzanite-84096890aca4a8c8604b0727cd61294d7d9c2619.zip
format
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);
}
}