From b0dd44687a663cadffe3787f3e582ec37faac565 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Wed, 11 Aug 2021 12:22:19 -0400 Subject: [PATCH] quotegame: remove debug, add time report --- plugins/quotegame/quotegame.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/quotegame/quotegame.go b/plugins/quotegame/quotegame.go index 1e6f5ba..035c418 100644 --- a/plugins/quotegame/quotegame.go +++ b/plugins/quotegame/quotegame.go @@ -97,8 +97,6 @@ func (p *QuoteGame) startGame(r bot.Request) bool { return true } - p.b.Send(r.Conn, bot.Message, r.Msg.Channel, fmt.Sprintf("Debug: starting game with %s having said %s", who, quote)) - length := time.Duration(p.c.GetInt("quotegame.length", 120)) p.currentGame = time.AfterFunc(length*time.Second, func() { p.currentGame = nil @@ -108,7 +106,7 @@ func (p *QuoteGame) startGame(r bot.Request) bool { p.currentName = who - msg := fmt.Sprintf("Quote game: Who said \"%s\"?\n\nUse `guess: name` to guess who", quote) + msg := fmt.Sprintf("Quote game: Who said \"%s\"?\nYou have %d seconds to guess.\nUse `guess: name` to guess who.", quote, length) p.b.Send(r.Conn, bot.Message, r.Msg.Channel, msg) return true