diff --git a/getArticles.go b/getArticles.go index b6573d6..09b1b1c 100644 --- a/getArticles.go +++ b/getArticles.go @@ -13,8 +13,8 @@ import ( "strings" "time" - "github.com/mmcdole/gofeed" "github.com/jaytaylor/html2text" + "github.com/mmcdole/gofeed" ) // Get new articles for specified feed. diff --git a/processStanzas.go b/processStanzas.go index 48aaa85..9c11d65 100644 --- a/processStanzas.go +++ b/processStanzas.go @@ -124,9 +124,13 @@ func processStanzas(client *xmpp.Client, muc string, mucNick string, feeds []str } } // Reply with pong to ping requests. - case "ping": - - reply := "pong" + case "ping", "bing": + var reply string + if command == "bing" { + reply = "bong" + } else { + reply = "pong" + } if v.Type == "groupchat" { _, err = client.Send(xmpp.Chat{Remote: muc,