No keeping forced variables when doing a random word scramble
This commit is contained in:
parent
a230b39297
commit
93bce4df0a
4
index.js
4
index.js
|
@ -867,10 +867,12 @@ client.on('messageCreate', async message => {
|
||||||
if (Math.floor(Math.random() * 25) == 0) {
|
if (Math.floor(Math.random() * 25) == 0) {
|
||||||
// Start a word scramble
|
// Start a word scramble
|
||||||
setCooldown({id: 0}, "wordscramble", 5 * 60 * 1000)
|
setCooldown({id: 0}, "wordscramble", 5 * 60 * 1000)
|
||||||
gameData = wordScramble();
|
override = false
|
||||||
|
gameData = wordScramble(override);
|
||||||
wordScrambles[message.channel.id] = {
|
wordScrambles[message.channel.id] = {
|
||||||
word: gameData.word,
|
word: gameData.word,
|
||||||
scrambledWord: gameData.scrambledWord,
|
scrambledWord: gameData.scrambledWord,
|
||||||
|
amount: 2,
|
||||||
badGuesses: []
|
badGuesses: []
|
||||||
}
|
}
|
||||||
message.channel.send({
|
message.channel.send({
|
||||||
|
|
Loading…
Reference in a new issue