mirror of https://github.com/velour/catbase.git
bid: show string in bid list
This commit is contained in:
parent
408794fe58
commit
2625671ed6
|
@ -51,7 +51,7 @@ func (p *NewsBid) message(conn bot.Connector, k bot.Kind, message msg.Message, a
|
||||||
sort.Slice(bids, func(i, j int) bool { return bids[i].User < bids[j].User })
|
sort.Slice(bids, func(i, j int) bool { return bids[i].User < bids[j].User })
|
||||||
out := "Bids:\n"
|
out := "Bids:\n"
|
||||||
for _, b := range bids {
|
for _, b := range bids {
|
||||||
out += fmt.Sprintf("%s bid %d on <%s|%s> \n", b.User, b.Bid, b.URL, b.Title)
|
out += fmt.Sprintf("%s bid %s on <%s|%s> \n", b.User, b.BidStr, b.URL, b.Title)
|
||||||
}
|
}
|
||||||
p.bot.Send(conn, bot.Message, ch, out)
|
p.bot.Send(conn, bot.Message, ch, out)
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue