From f203b7720f3b7bf2c83e81f77d378f2da0a7ab3c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 18 Jan 2021 20:27:26 -0500 Subject: [PATCH] Add send list option to anagrams --- commands/games-sp/anagramica.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands/games-sp/anagramica.js b/commands/games-sp/anagramica.js index fd574602..b16488fe 100644 --- a/commands/games-sp/anagramica.js +++ b/commands/games-sp/anagramica.js @@ -46,10 +46,16 @@ module.exports = class AnagramicaCommand extends Command { await msg.reply(stripIndents` **You have ${time} seconds to provide anagrams for the following letters:** ${letters.map(letter => `\`${letter.toUpperCase()}\``).join(' ')} + + _Need to see the list again? Type \`send list\`._ `); const picked = []; const filter = res => { if (res.author.id !== msg.author.id) return false; + if (res.content.toLowerCase() === 'send list') { + msg.reply(letters.map(letter => `\`${letter.toUpperCase()}\``).join(' ')).catch(() => null); + return true; + } if (picked.includes(res.content.toLowerCase())) return false; const score = this.getScore(letters, res.content.toLowerCase()); if (!score) return false;