mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-26 08:51:35 +00:00
Handle leave/join events (slack). Closes #246
This commit is contained in:
parent
7f9a400776
commit
43bd779fb7
@ -237,6 +237,10 @@ func (b *Bslack) handleSlack() {
|
|||||||
if message.Raw.SubType == "me_message" {
|
if message.Raw.SubType == "me_message" {
|
||||||
msg.Event = config.EVENT_USER_ACTION
|
msg.Event = config.EVENT_USER_ACTION
|
||||||
}
|
}
|
||||||
|
if message.Raw.SubType == "channel_leave" || message.Raw.SubType == "channel_join" {
|
||||||
|
msg.Username = "system"
|
||||||
|
msg.Event = config.EVENT_JOIN_LEAVE
|
||||||
|
}
|
||||||
b.Remote <- msg
|
b.Remote <- msg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user