WHA
This commit is contained in:
parent
8da368f39d
commit
3024a3f489
5
index.js
5
index.js
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue