You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
telegabber/telegabber.go

26 lines
518 B

package main
import (
"log"
"dev.narayana.im/narayana/telegabber/config"
"dev.narayana.im/narayana/telegabber/xmpp"
)
5 years ago
// YAML config, compatible with the format of Zhabogram 2.0.0
const configPath string = "config.yml"
// JSON schema (not for editing by a user)
const schemaPath string = "./config_schema.json"
func main() {
5 years ago
config, err := config.ReadConfig(configPath, schemaPath)
if err != nil {
log.Fatal(err)
}
5 years ago
cm := xmpp.NewComponent(config.XMPP)
// reconnect automatically
log.Fatal(cm.Run())
}