summaryrefslogtreecommitdiffstats
path: root/bridge/bridge.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-12-03 00:10:29 +0100
committerWim <wim@42.be>2016-12-03 00:10:29 +0100
commitfee159541f60bad245794cda69649fab569c2024 (patch)
treec5f65f068656b317bd786ba6059e21f58b569698 /bridge/bridge.go
parentd81e6bf6ce7f30f1b87c39c49272469f85dc2bd2 (diff)
downloadmatterbridge-msglm-fee159541f60bad245794cda69649fab569c2024.tar.gz
matterbridge-msglm-fee159541f60bad245794cda69649fab569c2024.tar.bz2
matterbridge-msglm-fee159541f60bad245794cda69649fab569c2024.zip
Add initial Rocket.Chat support
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r--bridge/bridge.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go
index 8c715369..b387812a 100644
--- a/bridge/bridge.go
+++ b/bridge/bridge.go
@@ -6,6 +6,7 @@ import (
"github.com/42wim/matterbridge/bridge/gitter"
"github.com/42wim/matterbridge/bridge/irc"
"github.com/42wim/matterbridge/bridge/mattermost"
+ "github.com/42wim/matterbridge/bridge/rocketchat"
"github.com/42wim/matterbridge/bridge/slack"
"github.com/42wim/matterbridge/bridge/telegram"
"github.com/42wim/matterbridge/bridge/xmpp"
@@ -59,6 +60,9 @@ func New(cfg *config.Config, bridge *config.Bridge, c chan config.Message) *Brid
case "telegram":
b.Config = cfg.Telegram[name]
b.Bridger = btelegram.New(cfg.Telegram[name], bridge.Account, c)
+ case "rocketchat":
+ b.Config = cfg.Rocketchat[name]
+ b.Bridger = brocketchat.New(cfg.Rocketchat[name], bridge.Account, c)
}
return b
}