From 97090b1cc3e3f783ed35bf59afdf57ca9851e25d Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Fri, 2 Jun 2023 20:23:29 +1000 Subject: [PATCH] Add timestamp to silent levelup notification --- src/models/userLevels.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/userLevels.ts b/src/models/userLevels.ts index 0637209..9aa32e9 100644 --- a/src/models/userLevels.ts +++ b/src/models/userLevels.ts @@ -24,7 +24,7 @@ export default class userLevels extends Schema { if (userData.messages >= this.algorithm(userData.level+2)){ while (userData.messages > this.algorithm(userData.level+1)){ const newData = await this._content.findByIdAndUpdate(userid, {level:userData.level++}, {new: true}); - console.log(`${userid} extended to level ${newData.level}`); + console.log(this.client.logTime(), `${userid} extended to level ${newData.level}`); } } else if (userData.messages >= this.algorithm(userData.level+1)) { const newData = await this._content.findByIdAndUpdate(userid, {level:userData.level+1}, {new: true});