I forgor to push a change
This commit is contained in:
parent
93bce4df0a
commit
e2e116df71
7
index.js
7
index.js
|
@ -792,15 +792,15 @@ client.on("interactionCreate", async interaction => {
|
||||||
override = false;
|
override = false;
|
||||||
}
|
}
|
||||||
if (interaction.options.get("amount")) {
|
if (interaction.options.get("amount")) {
|
||||||
amount = interaction.options.getNumber("amount");
|
coinamount = interaction.options.getNumber("amount");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
amount = 2;
|
coinamount = 2;
|
||||||
}
|
}
|
||||||
gameData = wordScramble(override);
|
gameData = wordScramble(override);
|
||||||
wordScrambles[interaction.channel.id] = {
|
wordScrambles[interaction.channel.id] = {
|
||||||
word: gameData.word,
|
word: gameData.word,
|
||||||
amount: amount,
|
amount: coinamount,
|
||||||
scrambledWord: gameData.scrambledWord,
|
scrambledWord: gameData.scrambledWord,
|
||||||
badGuesses: []
|
badGuesses: []
|
||||||
}
|
}
|
||||||
|
@ -868,6 +868,7 @@ client.on('messageCreate', async message => {
|
||||||
// Start a word scramble
|
// Start a word scramble
|
||||||
setCooldown({id: 0}, "wordscramble", 5 * 60 * 1000)
|
setCooldown({id: 0}, "wordscramble", 5 * 60 * 1000)
|
||||||
override = false
|
override = false
|
||||||
|
coinamount = 2
|
||||||
gameData = wordScramble(override);
|
gameData = wordScramble(override);
|
||||||
wordScrambles[message.channel.id] = {
|
wordScrambles[message.channel.id] = {
|
||||||
word: gameData.word,
|
word: gameData.word,
|
||||||
|
|
Loading…
Reference in a new issue