From 9eb801f570d7312fe160f0ecd905e7cf1b9801eb Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Thu, 17 Jun 2021 12:57:52 -0400 Subject: [PATCH] newsbid: filter zero balances --- plugins/newsbid/newsbid.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/newsbid/newsbid.go b/plugins/newsbid/newsbid.go index 10eba4e..a0323fb 100644 --- a/plugins/newsbid/newsbid.go +++ b/plugins/newsbid/newsbid.go @@ -99,7 +99,9 @@ func (p *NewsBid) scoresCmd(r bot.Request) bool { out := "NGate balances:\n" sort.Sort(bals) for _, b := range bals { - out += fmt.Sprintf("%s has a total score of %d with %d left to bid this session\n", b.User, b.Score, b.Balance) + if b.Score > 0 { + out += fmt.Sprintf("%s has a total score of %d with %d left to bid this session\n", b.User, b.Score, b.Balance) + } } p.bot.Send(r.Conn, bot.Message, ch, out) return true