aboutsummaryrefslogtreecommitdiff
path: root/telegabber.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-10-29 04:23:57 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-10-29 04:23:57 +0300
commit7e036fd795cc0b5710d3b049dc98f4538c32da6a (patch)
treea759a474c5c1a3aafb5a44a416ca9989bbf2b1b2 /telegabber.go
parent695c9fc35325d3bec3ec81bdce59f780acd74e8d (diff)
golint
Diffstat (limited to 'telegabber.go')
-rw-r--r--telegabber.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/telegabber.go b/telegabber.go
index d924822..c5ee366 100644
--- a/telegabber.go
+++ b/telegabber.go
@@ -7,16 +7,18 @@ import (
"dev.narayana.im/narayana/telegabber/xmpp"
)
-const CONFIG_PATH string = "config.yml"
-const SCHEMA_PATH string = "./config_schema.json"
+// 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"
func main() {
- config, err := config.ReadConfig(CONFIG_PATH, SCHEMA_PATH)
+ config, err := config.ReadConfig(configPath, schemaPath)
if err != nil {
log.Fatal(err)
}
- cm := xmpp.NewComponent(config.Xmpp)
+ cm := xmpp.NewComponent(config.XMPP)
// reconnect automatically
log.Fatal(cm.Run())