Update box

This commit is contained in:
*x1
2024-06-21 08:16:38 +02:00
parent ef2a368ea2
commit c427318815
+1
View File
@@ -19,6 +19,7 @@ module.exports = {
}
});
});
if (key == 0) return message.reply('Tu n\'as pas de clef, tu ne peux pas ouvrir de box')
db.run(`UPDATE users SET key = key - 1 WHERE userId = ? AND guildId = ?`, [message.author.id, message.guild.id])
const embed = new EmbedBuilder()