From e9faaf8a3ea76d8647e0c6be331429998a867f07 Mon Sep 17 00:00:00 2001 From: Darien Rousseau <45698803+not-pyroman@users.noreply.github.com> Date: Mon, 14 Aug 2023 20:47:42 -0600 Subject: [PATCH] it's supposed to be 2:1, not 1:4 --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 00c240d..715d08b 100644 --- a/index.js +++ b/index.js @@ -338,12 +338,12 @@ client.on("interactionCreate", async interaction => { ephemeral: true }); // Now check if they have enough for the tax - if (balance < amount * .25) return interaction.reply({ - content: `You do not have enough coins to pay the tax of ${config.discord.coin}${amount * .25}. You only have ${config.discord.coin}${balance}.`, + if (balance < amount * 2) return interaction.reply({ + content: `You do not have enough coins to pay the tax of ${config.discord.coin}${amount}. You only have ${config.discord.coin}${balance}.`, ephemeral: true }); // At this point we know they have enough coins, so we can take them away, make sure to take the tax away too - checkAndModifyPoints(interaction.user, -amount * .25); + checkAndModifyPoints(interaction.user, -amount * 2); // Now we can give the other user the coins checkAndModifyPoints(interaction.options.getMember("user").user, amount); // Now we can tell the user that it worked