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

go back to where you came from.

This commit is contained in:
toast-ts 2022-11-23 23:28:21 +11:00
parent ccc907f330
commit 254202c6fe

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