aboutsummaryrefslogtreecommitdiff
path: root/telegabber.go
diff options
context:
space:
mode:
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())