quotegame: tell us who it was when we lost

This commit is contained in:
Chris Sexton 2021-08-11 12:40:15 -04:00 committed by Chris Sexton
parent b0dd44687a
commit cd5018af77
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ func (p *QuoteGame) startGame(r bot.Request) bool {
p.currentGame = time.AfterFunc(length*time.Second, func() {
p.currentGame = nil
p.currentName = ""
p.b.Send(r.Conn, bot.Message, r.Msg.Channel, "Game ended.")
p.b.Send(r.Conn, bot.Message, r.Msg.Channel,
fmt.Sprintf("The quote game ended and nobody won. The answer was %s", who))
})
p.currentName = who