From 3024a3f489e3596bbce1c116b0fbc4a85f013e4f Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 13 Aug 2023 21:25:18 -0600 Subject: [PATCH] WHA --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index c770fc6..dd22e22 100644 --- a/index.js +++ b/index.js @@ -511,9 +511,9 @@ client.on("interactionCreate", async interaction => { }] }); // Check if they won or lost, if they won, give them the prize + await checkAndModifyPoints(interaction.user.id, slotResults.coinDifference); if (slotResults.coinDifference > 0) { - await checkAndModifyPoints(interaction.user.id, slotResults.coinDifference + 3); - if (slotResults.jackpot) { + await checkAndModifyPoints(interaction.user.id, 3); // Give them the 3 coins back return await interaction.editReply({ embeds: [{ title: "Jackpot!", @@ -540,7 +540,6 @@ client.on("interactionCreate", async interaction => { } } else { // They lost, sad - checkAndModifyPoints(interaction.user.id, slotResults.coinDifference); if (slotResults.bombs) { // Triple bombs, very sad await interaction.editReply({