i18n: fränggisch

This commit is contained in:
Martin Dosch 2023-04-06 17:51:14 +02:00
parent 0f37d0fd57
commit 1f0a1b7292
2 changed files with 8 additions and 4 deletions

View file

@ -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.

View file

@ -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,