No keeping forced variables when doing a random word scramble

This commit is contained in:
Darien Rousseau 2023-09-04 16:40:04 -06:00
parent a230b39297
commit 93bce4df0a

View file

@ -867,10 +867,12 @@ client.on('messageCreate', async message => {
if (Math.floor(Math.random() * 25) == 0) {
// Start a word scramble
setCooldown({id: 0}, "wordscramble", 5 * 60 * 1000)
gameData = wordScramble();
override = false
gameData = wordScramble(override);
wordScrambles[message.channel.id] = {
word: gameData.word,
scrambledWord: gameData.scrambledWord,
amount: 2,
badGuesses: []
}
message.channel.send({