blob: 6c17c915f88bbca0bbab08ab4f6e2c9d78206415 (
plain) (
tree)
|
|
package main
import (
"log"
"dev.narayana.im/narayana/telegabber/config"
"dev.narayana.im/narayana/telegabber/xmpp"
)
const CONFIG_PATH string = "config.yml"
func main() {
config, err := config.ReadConfig(CONFIG_PATH)
if err != nil {
log.Fatal(err)
}
cm := xmpp.NewComponent(config.Xmpp)
// reconnect automatically
log.Fatal(cm.Run())
}
|