Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 324e82eddee96a2a0ea89188de8a59397a46b8bc Author: Wim <wim@42.be> Date: Thu Jun 28 21:14:31 2018 +0000 Allow join-leave and topic changes to webhook (discord) diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 81f0cbe..5cef5f0 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -1277 +1277 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {   // Use webhook to send the message   if wID != "" {   // skip events - if msg.Event != "" { + if msg.Event != "" && msg.Event != EVENT_JOIN_LEAVE && msg.Event != EVENT_TOPIC_CHANGE {   return "", nil   }   b.Log.Debugf("Broadcasting using Webhook")