mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-22 22:18:39 +01:00
i18n: fränggisch
This commit is contained in:
parent
0f37d0fd57
commit
1f0a1b7292
2 changed files with 8 additions and 4 deletions
|
@ -13,8 +13,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mmcdole/gofeed"
|
|
||||||
"github.com/jaytaylor/html2text"
|
"github.com/jaytaylor/html2text"
|
||||||
|
"github.com/mmcdole/gofeed"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Get new articles for specified feed.
|
// Get new articles for specified feed.
|
||||||
|
|
|
@ -124,9 +124,13 @@ func processStanzas(client *xmpp.Client, muc string, mucNick string, feeds []str
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Reply with pong to ping requests.
|
// Reply with pong to ping requests.
|
||||||
case "ping":
|
case "ping", "bing":
|
||||||
|
var reply string
|
||||||
reply := "pong"
|
if command == "bing" {
|
||||||
|
reply = "bong"
|
||||||
|
} else {
|
||||||
|
reply = "pong"
|
||||||
|
}
|
||||||
|
|
||||||
if v.Type == "groupchat" {
|
if v.Type == "groupchat" {
|
||||||
_, err = client.Send(xmpp.Chat{Remote: muc,
|
_, err = client.Send(xmpp.Chat{Remote: muc,
|
||||||
|
|
Loading…
Reference in a new issue