From 28a21c808819c4f63f69794a280a6a05468b5aff Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 25 Sep 2022 12:11:20 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B8=20slots=20=D0=BF=D1=80=D0=B8=20=D0=BE=D1=82?= =?UTF-8?q?=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B8=20=D1=81=D1=83?= =?UTF-8?q?=D0=BC=D0=BC=D1=8B=20=D1=83=20=D1=8E=D0=B7=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Economy/slots.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/Economy/slots.js b/commands/Economy/slots.js index 2b7ad7e7..3e0d9833 100644 --- a/commands/Economy/slots.js +++ b/commands/Economy/slots.js @@ -35,8 +35,9 @@ class Slots extends BaseCommand { */ async execute(client, interaction, data) { await interaction.deferReply(); + const amount = interaction.options.getInteger("amount"); - if (amount > data.memberData.money) return interaction.error("economy/slots:NOT_ENOUGH", { money: `**${amount}** ${client.getNoun(amount, interaction.translate("misc:NOUNS:CREDIT:1"), interaction.translate("misc:NOUNS:CREDIT:2"), interaction.translate("misc:NOUNS:CREDIT:5"))}` }); + if (amount > data.memberData.money) return interaction.error("economy/slots:NOT_ENOUGH", { money: `**${amount}** ${client.getNoun(amount, interaction.translate("misc:NOUNS:CREDIT:1"), interaction.translate("misc:NOUNS:CREDIT:2"), interaction.translate("misc:NOUNS:CREDIT:5"))}` }, { edit: true }); const fruits = ["🍎", "🍐", "🍌", "🍇", "🍉", "🍒", "🍓"];