From f0fc8f66aa21063f18635b157d223a265d474859 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 23 Nov 2018 02:08:39 +0000 Subject: [PATCH] Fix --- commands/games/word-chain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games/word-chain.js b/commands/games/word-chain.js index 3647bbcc..699d7dac 100644 --- a/commands/games/word-chain.js +++ b/commands/games/word-chain.js @@ -82,7 +82,7 @@ module.exports = class WordChainCommand extends Command { await msg.say(`Sorry, **${lastWord}** is indeed valid!`); continue; } - if (!choice.endsWith(letter) || words.includes(choice)) { + if (!choice.startsWith(letter) || words.includes(choice)) { await msg.say('Sorry! You lose!'); winner = userTurn ? opponent : msg.author; break;