From 2cfca47d7db6d6a16814737636286f1cb9bebac8 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sat, 18 Sep 2021 10:24:39 -0400 Subject: [PATCH] ngate: fix formatting for all platforms --- plugins/newsbid/newsbid.go | 2 +- plugins/newsbid/webshit/hn/api.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/newsbid/newsbid.go b/plugins/newsbid/newsbid.go index a0323fb..354f1a2 100644 --- a/plugins/newsbid/newsbid.go +++ b/plugins/newsbid/newsbid.go @@ -78,7 +78,7 @@ func (p *NewsBid) bidsCmd(r bot.Request) bool { out := "Bids:\n" for _, b := range bids { hnURL := fmt.Sprintf("https://news.ycombinator.com/item?id=%d", b.HNID) - out += fmt.Sprintf("• %s bid %s <%s|%s> (<%s|Comments>)\n", b.User, b.BidStr, b.URL, b.Title, hnURL) + out += fmt.Sprintf("• %s bid %s on %s (%s)\n", b.User, b.BidStr, b.Title, hnURL) } p.bot.Send(r.Conn, bot.Message, ch, out) return true diff --git a/plugins/newsbid/webshit/hn/api.go b/plugins/newsbid/webshit/hn/api.go index 86caf95..7c56ce2 100644 --- a/plugins/newsbid/webshit/hn/api.go +++ b/plugins/newsbid/webshit/hn/api.go @@ -36,9 +36,9 @@ func (is Items) Titles() string { for _, v := range is { hnURL := fmt.Sprintf("https://news.ycombinator.com/item?id=%d", v.ID) if v.URL == "" { - out += fmt.Sprintf("• %s %s (<%s|Comments>)\n", v.Bid, v.Title, hnURL) + out += fmt.Sprintf("• %s %s (%s)\n", v.Bid, v.Title, hnURL) } else { - out += fmt.Sprintf("• %s <%s|%s> (<%s|Comments>)\n", v.Bid, v.URL, v.Title, hnURL) + out += fmt.Sprintf("• %s %s (%s)\n", v.Bid, v.Title, hnURL) } } return out