aboutsummaryrefslogtreecommitdiff
path: root/telegabber.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegabber.go')
-rw-r--r--telegabber.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/telegabber.go b/telegabber.go
index c5ee366..6754038 100644
--- a/telegabber.go
+++ b/telegabber.go
@@ -1,14 +1,15 @@
package main
import (
- "log"
-
"dev.narayana.im/narayana/telegabber/config"
"dev.narayana.im/narayana/telegabber/xmpp"
+
+ log "github.com/sirupsen/logrus"
)
// 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"
@@ -18,7 +19,10 @@ func main() {
log.Fatal(err)
}
- cm := xmpp.NewComponent(config.XMPP)
+ cm, err := xmpp.NewComponent(config.XMPP, config.Telegram)
+ if err != nil {
+ log.Fatal(err)
+ }
// reconnect automatically
log.Fatal(cm.Run())