Skip to content

Commit

Permalink
well that would explain it....
Browse files Browse the repository at this point in the history
  • Loading branch information
O.Whale authored Jul 18, 2024
1 parent 5330ba6 commit 83dacb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ const checkLevel = async (message, client) => {
level: 0,
userId: message.author.id,
};
var newXp = oldXpObj + genRan(1, 2);
//var newXp = oldXpObj + genRan(1, 2);
await mongo.saveXP(message.author.id, newXp, 0);

const newXpObj = {
xp: oldXpObj.xp + genRan(1,10),
level: 0,
userId: message.author.id,
};
setTimeout(() => {
client.LCD.delete(message.author.id);
}, client.C.LEVEL_COOLDOWN);
Expand Down

0 comments on commit 83dacb3

Please sign in to comment.