1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-29 05:35:38 -05:00

go back to where you came from.

This commit is contained in:
AnxietyisReal 2022-11-23 23:28:21 +11:00
parent 9d932fd8f8
commit da28dc9a89

View File

@ -426,7 +426,7 @@ class userLevels extends Database {
} }
} else if (data.messages >= this.algorithm(data.level+1)){// If user's message count meets/exceeds message requirement for next level... } else if (data.messages >= this.algorithm(data.level+1)){// If user's message count meets/exceeds message requirement for next level...
this._content[userid].level++;// Level them up. this._content[userid].level++;// Level them up.
(this.client.channels.resolve(this.client.config.mainServer.channels.thismeanswar) as Discord.TextChannel).send({content: `<@${userid}> has reached level **${data.level}**. GG!`, allowedMentions: {parse: ['users']}}) (this.client.channels.resolve(this.client.config.mainServer.channels.botcommands) as Discord.TextChannel).send({content: `<@${userid}> has reached level **${data.level}**. GG!`, allowedMentions: {parse: ['users']}})
} }
} else {// If user doesn't exist on file, create an object for it. } else {// If user doesn't exist on file, create an object for it.
this._content[userid] = {messages: 1, level: 0}; this._content[userid] = {messages: 1, level: 0};