blob: dd1e187a73c06327f817d9ae549dd73944b096d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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 := config.ReadConfig(CONFIG_PATH)
cm := xmpp.NewComponent(config.Xmpp)
// reconnect automatically
log.Fatal(cm.Run())
}
|