Skip to content

Commit

Permalink
fix: Resolve regression of BotInteractionMode (#137)
Browse files Browse the repository at this point in the history
In commit d3d36ce a regression was
introduced that broke BotInteractionMode and instead ignored all bot
messages.

Closes #135
  • Loading branch information
arusso authored Apr 15, 2023
1 parent aba484e commit 48bf59b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions message_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@ func NewMessageEvent(slacker *Slacker, event interface{}, req *socketmode.Reques
return nil
}

// Filter out other bots. At the very least this is needed for MessageEvent
// to prevent the bot from self-triggering and causing loops. However better
// logic should be in place to prevent repeated self-triggering / bot-storms
// if we want to enable this later.
if messageEvent.IsBot() {
return nil
}
return messageEvent
}

Expand Down

0 comments on commit 48bf59b

Please sign in to comment.