I'm building a Slack bot using a Slack App. I have managed to authorise and am successfully receiving events via the Event API.
I'm trying to find out how to listen only for direct mentions of the bot.
Therefore it should fire an event when someone messages a public or private channel AND when the bot is directly tagged like @bot
Public/private Slack Channel Example:
Daniel: Hi there bot (does not trigger)
Jeremy: @bot hi there (triggers Event API)
Is there a Slack Event that does this? Or is there another way to do this? I don't want to have to hardcode it into my server-side application as then I will be receiving a lot of unnecessary events.