Skip to content

Commit

Permalink
#225 Fix /wordle Bug Win on 5th Try Title was Lose
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantam-Studios committed Dec 19, 2024
1 parent 687e722 commit c1a7642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/wordle-group/helpers/wordleMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static string CreateFinalTitle(Wordle game)
stringBuilder.AppendLine($"### 💡 {game.Player1.Mention}'s Wordle Expired!");
stringBuilder.AppendLine($"**Answer:** {GetFormattedGuess(game.Word)}");
}
else if (game.GuessesLeft > 0)
else if (game.Word == game.Guesses.Last().Guess)
{
stringBuilder.AppendLine($"### 💡 {game.Player1.Mention} Guessed the Wordle in: {GuessCount - game.GuessesLeft}!");
stringBuilder.AppendLine(GetCongrats());
Expand Down

0 comments on commit c1a7642

Please sign in to comment.