This commit is contained in:
Daniel Odendahl Jr
2018-11-23 02:08:39 +00:00
parent 9c2a319cb0
commit f0fc8f66aa
+1 -1
View File
@@ -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;