mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-28 13:05:38 -05:00
Add timestamp to silent levelup notification
This commit is contained in:
parent
cb2fd3b47f
commit
385d9dc5af
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user