scrapinghub / slackbot

A chat bot for Slack (https://slack.com).
MIT License
1.26k stars 394 forks source link

receive event #135

Open melvilgit opened 7 years ago

melvilgit commented 7 years ago

How to receive event when my bot is joining a channel for the first time ? I'm getting the message object when someone else is joined. Seems like the message object itself is not received

jtatum commented 7 years ago

Right now, the bot only handles message-type events. Slack sends a channel_joined event when you join a channel, and a channel_join message subtype when someone else joins. We'd need to add a new decorator for monitoring channel joins, and the dispatcher would need to handle and dispatch channel_joined events.