From 23ac18723181079b65b1ac0a1bd4d1917f86f6b0 Mon Sep 17 00:00:00 2001 From: Darien Rousseau <45698803+not-pyroman@users.noreply.github.com> Date: Thu, 21 Dec 2023 22:46:41 -0600 Subject: [PATCH] how did i delete JUST the word coin from he coinflip??? shouldn't crash now --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 686705a..658d6be 100644 --- a/index.js +++ b/index.js @@ -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