mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
go back to where you came from.
This commit is contained in:
parent
9b5851134e
commit
53c1b24154
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user