put coin in the wrong spot

This commit is contained in:
Darien Rousseau 2023-12-21 22:50:16 -06:00 committed by GitHub
parent bc406b28c3
commit 86f15c75fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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