mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-03 23:36:29 +02:00
Update recompense lvl (modif des coins (car la on gagne 1coins par lvl)
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = {
|
||||
if (user.xp >= 100 * user.lvl) {
|
||||
db.run(
|
||||
`UPDATE users SET xp = xp - ?, lvl = lvl + 1, pocket = pocket + ?, reputation = reputation + ? WHERE guildId = ? AND userId = ?`,
|
||||
[100 * user.lvl, user.lvl + 1, Math.ceil((user.lvl + 1) / 5), message.guild.id, message.author.id]
|
||||
[100 * user.lvl, (Math.ceil((user.lvl + 1) / 5)) * 500, Math.ceil((user.lvl + 1) / 5), message.guild.id, message.author.id]
|
||||
);
|
||||
|
||||
const embedlvl = new EmbedBuilder()
|
||||
|
||||
Reference in New Issue
Block a user