From 4f40eadde3d260dee3a22d211ff24dd429368309 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 29 May 2020 18:13:08 -0400 Subject: [PATCH] Fix --- commands/games-sp/anagramica.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/games-sp/anagramica.js b/commands/games-sp/anagramica.js index cd6dd408..cb87d204 100644 --- a/commands/games-sp/anagramica.js +++ b/commands/games-sp/anagramica.js @@ -26,6 +26,7 @@ module.exports = class AnagramicaCommand extends Command { key: 'time', prompt: 'How long should the game last in seconds? Max 90, min 15.', type: 'integer', + default: 45, max: 90, min: 15 } @@ -75,7 +76,7 @@ module.exports = class AnagramicaCommand extends Command { getScore(letters, word) { let score = 0; for (const letter of word.split('')) { - if (!letters[letter]) return null; + if (!letters.includes(letter)) return null; score += scores[letter]; } return score;