From fee159541f60bad245794cda69649fab569c2024 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 3 Dec 2016 00:10:29 +0100 Subject: Add initial Rocket.Chat support --- bridge/bridge.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bridge/bridge.go') 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 } -- cgit v1.2.3