This commit is contained in:
Christopher Cookman 2023-08-13 21:25:18 -06:00
parent 8da368f39d
commit 3024a3f489
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -511,9 +511,9 @@ client.on("interactionCreate", async interaction => {
}] }]
}); });
// Check if they won or lost, if they won, give them the prize // Check if they won or lost, if they won, give them the prize
await checkAndModifyPoints(interaction.user.id, slotResults.coinDifference);
if (slotResults.coinDifference > 0) { if (slotResults.coinDifference > 0) {
await checkAndModifyPoints(interaction.user.id, slotResults.coinDifference + 3); await checkAndModifyPoints(interaction.user.id, 3); // Give them the 3 coins back
if (slotResults.jackpot) {
return await interaction.editReply({ return await interaction.editReply({
embeds: [{ embeds: [{
title: "Jackpot!", title: "Jackpot!",
@ -540,7 +540,6 @@ client.on("interactionCreate", async interaction => {
} }
} else { } else {
// They lost, sad // They lost, sad
checkAndModifyPoints(interaction.user.id, slotResults.coinDifference);
if (slotResults.bombs) { if (slotResults.bombs) {
// Triple bombs, very sad // Triple bombs, very sad
await interaction.editReply({ await interaction.editReply({