diff options
author | Wim <wim@42.be> | 2016-07-11 21:23:33 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-07-11 21:23:33 +0200 |
commit | aceb8303785fa43b60fff5d3bb497cb73b748f6b (patch) | |
tree | 2ddeb385ff9ddd15202a3ec50ce13eb549337de7 /matterbridge.go | |
parent | 0f2976c5ce176a529c862907add54874ffd70252 (diff) | |
download | matterbridge-msglm-aceb8303785fa43b60fff5d3bb497cb73b748f6b.tar.gz matterbridge-msglm-aceb8303785fa43b60fff5d3bb497cb73b748f6b.tar.bz2 matterbridge-msglm-aceb8303785fa43b60fff5d3bb497cb73b748f6b.zip |
Converge with matterbridge-plus
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/matterbridge.go b/matterbridge.go index a40ec8a0..db0ebf00 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -3,7 +3,7 @@ package main import ( "flag" "fmt" - "github.com/42wim/matterbridge-plus/bridge" + "github.com/42wim/matterbridge/bridge" log "github.com/Sirupsen/logrus" ) @@ -17,6 +17,7 @@ func main() { flagConfig := flag.String("conf", "matterbridge.conf", "config file") flagDebug := flag.Bool("debug", false, "enable debug") flagVersion := flag.Bool("version", false, "show version") + flagPlus := flag.Bool("plus", false, "running using API instead of webhooks") flag.Parse() if *flagVersion { fmt.Println("Version:", Version) @@ -28,6 +29,10 @@ func main() { log.SetLevel(log.DebugLevel) } fmt.Println("running version", Version) - bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "legacy") + if *flagPlus { + bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "") + } else { + bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "legacy") + } select {} } |