mirror of https://github.com/velour/catbase.git
quotegame: remove debug, add time report
This commit is contained in:
parent
24668cf774
commit
b0dd44687a
|
@ -97,8 +97,6 @@ func (p *QuoteGame) startGame(r bot.Request) bool {
|
||||||
return true
|
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))
|
length := time.Duration(p.c.GetInt("quotegame.length", 120))
|
||||||
p.currentGame = time.AfterFunc(length*time.Second, func() {
|
p.currentGame = time.AfterFunc(length*time.Second, func() {
|
||||||
p.currentGame = nil
|
p.currentGame = nil
|
||||||
|
@ -108,7 +106,7 @@ func (p *QuoteGame) startGame(r bot.Request) bool {
|
||||||
|
|
||||||
p.currentName = who
|
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)
|
p.b.Send(r.Conn, bot.Message, r.Msg.Channel, msg)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue