From 9b4a09677a352d9938e4505bfc2d0c8d304567ac Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Tue, 22 Oct 2019 19:36:54 +0300 Subject: Hello world XMPP echo component --- telegabber.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 telegabber.go (limited to 'telegabber.go') diff --git a/telegabber.go b/telegabber.go new file mode 100644 index 0000000..dd1e187 --- /dev/null +++ b/telegabber.go @@ -0,0 +1,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()) +} -- cgit v1.2.3