When you guess a letter in hangman, updated message will now correctly show previous guesses. closes #1541
This commit is contained in:
parent
4adf85a9eb
commit
1af4679d9e
@ -113,7 +113,8 @@ namespace NadekoBot.Modules.Games
|
|||||||
|
|
||||||
private Task Hm_OnGuessSucceeded(Hangman game, string user, char guess)
|
private Task Hm_OnGuessSucceeded(Hangman game, string user, char guess)
|
||||||
{
|
{
|
||||||
return Context.Channel.SendConfirmAsync($"Hangman Game ({game.TermType})", $"{user} guessed a letter `{guess}`!\n" + game.ScrambledWord + "\n" + game.GetHangman());
|
return Context.Channel.SendConfirmAsync($"Hangman Game ({game.TermType})", $"{user} guessed a letter `{guess}`!\n" + game.ScrambledWord + "\n" + game.GetHangman(),
|
||||||
|
footer: string.Join(" ", game.PreviousGuesses));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Task Hm_OnGuessFailed(Hangman game, string user, char guess)
|
private Task Hm_OnGuessFailed(Hangman game, string user, char guess)
|
||||||
|
Loading…
Reference in New Issue
Block a user