put coin in the wrong spot
This commit is contained in:
parent
bc406b28c3
commit
86f15c75fe
2
index.js
2
index.js
|
@ -642,7 +642,7 @@ client.on("interactionCreate", async interaction => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Flip the coin
|
// Flip the coin
|
||||||
Math.random() coin <= 0.5 ? "heads" : "tails";
|
coin = Math.random() <= 0.5 ? "heads" : "tails";
|
||||||
side = interaction.options.getString("side");
|
side = interaction.options.getString("side");
|
||||||
outcome = coin == side ? true : false;
|
outcome = coin == side ? true : false;
|
||||||
// If they win, give them the prize, if they lose take up to double the prize away
|
// If they win, give them the prize, if they lose take up to double the prize away
|
||||||
|
|
Loading…
Reference in a new issue