1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Toast
8ca48051f5 Update TypeScript and other packages 2023-06-02 20:28:35 +10:00
Toast
ae53d11947 Add timestamp to silent levelup notification 2023-06-02 20:23:29 +10:00
2 changed files with 6 additions and 6 deletions

View File

@ -29,15 +29,15 @@
"discord.js": "14.11.0",
"moment": "2.29.4",
"ms": "2.1.3",
"mongoose": "7.1.1",
"systeminformation": "5.17.12",
"@octokit/rest": "19.0.8",
"mongoose": "7.2.2",
"systeminformation": "5.17.16",
"@octokit/rest": "19.0.11",
"@octokit/auth-token": "3.0.3",
"typescript": "5.0.4",
"typescript": "5.1.3",
"xml-js": "1.6.11"
},
"devDependencies": {
"@types/ms": "0.7.31",
"@types/node": "20.2.0"
"@types/node": "20.2.5"
}
}

View File

@ -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});