4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-07 04:14:04 +00:00

Add Discord support

This commit is contained in:
Wim
2016-09-19 20:53:26 +02:00
parent 0816e96831
commit a0b84beb9b
40 changed files with 9819 additions and 4 deletions

View File

@ -2,6 +2,7 @@ package bridge
import (
"github.com/42wim/matterbridge/bridge/config"
"github.com/42wim/matterbridge/bridge/discord"
"github.com/42wim/matterbridge/bridge/gitter"
"github.com/42wim/matterbridge/bridge/irc"
"github.com/42wim/matterbridge/bridge/mattermost"
@ -35,6 +36,8 @@ func New(cfg *config.Config, bridge *config.Bridge, c chan config.Message) Bridg
return bslack.New(cfg.Slack[name], name, c)
case "xmpp":
return bxmpp.New(cfg.Xmpp[name], name, c)
case "discord":
return bdiscord.New(cfg.Discord[name], name, c)
}
return nil
}