From c5a3cff09eef6143099a866c4a10626ae66cdef7 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 19 Jan 2022 18:37:54 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D1=86=D0=B5=D0=BB=D1=8B=D0=B5?= =?UTF-8?q?=20=D1=87=D0=B8=D1=81=D0=BB=D0=B0=20=D0=B2=D0=BC=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=BE=20=D1=87=D0=B8=D1=81=D0=B5=D0=BB=20=D1=81=20=D1=82?= =?UTF-8?q?=D0=BE=D1=87=D0=BD=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Fun/horserace.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/Fun/horserace.js b/commands/Fun/horserace.js index fa062421..b80079e1 100644 --- a/commands/Fun/horserace.js +++ b/commands/Fun/horserace.js @@ -8,7 +8,7 @@ class Horserace extends Command { name: "horserace", dirname: __dirname, enabled: false, - guildOnly: false, + guildOnly: true, aliases: ["hr"], memberPermissions: [], botPermissions: ["SEND_MESSAGES", "EMBED_LINKS"], @@ -57,9 +57,9 @@ class Horserace extends Command { }); } } else if (args[0] === "bet") { - const horse = parseFloat(args[1]); + const horse = parseInt(args[1]); if (horse > 5) return message.sendT("fun/horserace:HORSE_NUM"); - const amount = parseFloat(args[2]); + const amount = parseInt(args[2]); if (!amount || isNaN(amount) || parseInt(amount, 10) <= 0) return message.error("economy/pay:INVALID_AMOUNT"); if (amount > data.memberData.money) return message.error("economy/pay:ENOUGH_MONEY", {