From a12a8d4fe2d2f38074278396870085684f9548ca Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Wed, 18 Apr 2018 00:52:48 +0300 Subject: Send mediaserver link to Discord in Webhook mode (discord) (#405) --- bridge/discord/discord.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bridge/discord') diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index fa879d00..ef4e5ca6 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -130,6 +130,12 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { return "", nil } b.Log.Debugf("Broadcasting using Webhook") + for _, f := range msg.Extra["file"] { + fi := f.(config.FileInfo) + if fi.URL != "" { + msg.Text += fi.URL + " " + } + } err := b.c.WebhookExecute( wID, wToken, -- cgit v1.2.3