mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 08:29:25 +01:00
Allow join-leave and topic changes to webhook (discord)
This commit is contained in:
parent
e4b72136b8
commit
8779f67d2d
@ -127,7 +127,7 @@ 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")
|
||||
|
Loading…
Reference in New Issue
Block a user