how did i delete JUST the word coin from he coinflip???

shouldn't crash now
This commit is contained in:
Darien Rousseau 2023-12-21 22:46:41 -06:00 committed by GitHub
parent a84ecb86d2
commit 23ac187231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
const config = require("./config.json");
Rconst config = require("./config.json");
if (!config.debug) config.debug = false;
const Discord = require("discord.js");
const rest = new Discord.REST({
@ -642,7 +642,7 @@ client.on("interactionCreate", async interaction => {
});
// Flip the coin
Math.random() <= 0.5 ? "heads" : "tails";
Math.random() coin <= 0.5 ? "heads" : "tails";
side = interaction.options.getString("side");
outcome = coin == side ? true : false;
// If they win, give them the prize, if they lose take up to double the prize away