mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user