Allow join-leave and topic changes to webhook (discord)

This commit is contained in:
Wim 2018-06-28 21:14:31 +02:00
parent e4b72136b8
commit 8779f67d2d
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
// Use webhook to send the message // Use webhook to send the message
if wID != "" { if wID != "" {
// skip events // skip events
if msg.Event != "" { if msg.Event != "" && msg.Event != EVENT_JOIN_LEAVE && msg.Event != EVENT_TOPIC_CHANGE {
return "", nil return "", nil
} }
b.Log.Debugf("Broadcasting using Webhook") b.Log.Debugf("Broadcasting using Webhook")