From fd756459a0238859800719b9db372bb2853a7a49 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 9 Nov 2020 17:59:26 -0500 Subject: [PATCH] Fix --- commands/random-res/acrostic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-res/acrostic.js b/commands/random-res/acrostic.js index f4ccd7b3..2eafe098 100644 --- a/commands/random-res/acrostic.js +++ b/commands/random-res/acrostic.js @@ -35,7 +35,7 @@ module.exports = class AcrosticCommand extends Command { run(msg, { word }) { const results = []; for (const letter of word) { - const filteredWords = wordList.filter(wrd => wrd.startsWith(letter.toLowerCase())); + const filteredWords = words.filter(wrd => wrd.startsWith(letter.toLowerCase())); const chosen = filteredWords[Math.floor(Math.random() * filteredWords.length)]; results.push(`**${letter.toUpperCase()}**${chosen.slice(1)}`); }