From c4273188157670920fe8bee5eb344e2846f76797 Mon Sep 17 00:00:00 2001 From: *x1 Date: Fri, 21 Jun 2024 08:16:38 +0200 Subject: [PATCH] Update box --- commands/jeux/box.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/jeux/box.js b/commands/jeux/box.js index 664b729..e539868 100644 --- a/commands/jeux/box.js +++ b/commands/jeux/box.js @@ -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()