From 8b37f26fbb3ae94ba8f8da64592b6ff310e71484 Mon Sep 17 00:00:00 2001 From: Darien Rousseau <45698803+not-pyroman@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:39:50 -0600 Subject: [PATCH] =?UTF-8?q?me=20when=20forgor=20=F0=9F=92=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a78fcf1..b9604a8 100644 --- a/index.js +++ b/index.js @@ -785,7 +785,8 @@ client.on("interactionCreate", async interaction => { } // Start a word scramble - gameData = wordScramble(); + override = interaction.options.get("override").value; + gameData = wordScramble(override); wordScrambles[interaction.channel.id] = { word: gameData.word, scrambledWord: gameData.scrambledWord, @@ -885,7 +886,6 @@ client.on('messageCreate', async message => { function wordScramble() { // Get a random word from config.games.wordscramble.words then scramble it - override = interaction.options.get("override").value; if (!override) { word = config.games.wordscramble.words[Math.floor(Math.random() * config.games.wordscramble.words.length)]; }