diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-04 01:15:43 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-04 01:15:43 +0300 |
commit | aaf7233c89af4dfbc2a8b9f5e11b4ff5e9713567 (patch) | |
tree | d449c7a41d1945e249cd066921c7a436f7614f84 /telegabber.go | |
parent | 7e036fd795cc0b5710d3b049dc98f4538c32da6a (diff) |
Presence/iq handling and rudimental telegram client
Diffstat (limited to 'telegabber.go')
-rw-r--r-- | telegabber.go | 10 |
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()) |