From 80822b7fff85647ad5852b00ec36d046959aed92 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 3 Feb 2018 01:11:11 +0100 Subject: Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 --- bridge/discord/discord.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bridge/discord') diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index a5e20758..d57f9122 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -3,6 +3,7 @@ package bdiscord import ( "bytes" "github.com/42wim/matterbridge/bridge/config" + "github.com/42wim/matterbridge/bridge/helper" log "github.com/Sirupsen/logrus" "github.com/bwmarrin/discordgo" "regexp" @@ -139,6 +140,9 @@ func (b *bdiscord) Send(msg config.Message) (string, error) { } if msg.Extra != nil { + for _, rmsg := range helper.HandleExtra(&msg, b.General) { + b.c.ChannelMessageSend(channelID, rmsg.Username+rmsg.Text) + } // check if we have files to upload (from slack, telegram or mattermost) if len(msg.Extra["file"]) > 0 { var err error -- cgit v1.2.3