-
Notifications
You must be signed in to change notification settings - Fork 2.3k
bot_channel_join event not firing when bot is invited to a channel #347
Comments
I'm having the same issue with this, as well as the user_channel_join event. |
Maybe you need to use bot_group_join and user_group_join instead. |
Same here, tried both user_channel_join and bot_channel_join but they don't fire. |
@dipesh-gandhi Are you using the latest botkit? version 4.2? Events API or RTM? |
Events API does not send Here is a link to the lines I changed. Will submit a PR for this after coming back and looking at that exception again 👍 |
@jonchurch Thanks much for looking into this, especially since its around holidays. :) The fix you propose seems to be specific to Slack? I'm using Console Bot at moment but I tried regardless, and no luck. I'm fairly new to Botkit so you can correct me.. My goal is for Bot to sent initial greeting message from bot in either case when user joins bot / bot joins user. This is regardless of interface slack, sms, console, web chat, etc. I was thinking there would be some events triggered at bot core, an abstraction? |
Hmm the concept of channel joins is slack specific Im fairly sure. I honestly have not used console bot yet, but will test it today. So to be clear, you made the changes to Slackbot.js but are still not receiving bot_channel_join events? |
Not a solution, just another option, but when a bot is added to a slack team an event called create_bot is fired, for facebook user_optin is fired when a user clicks get started. For slack this would give you the opportunity to send instructions or welcome message to whoever added the bot to the team, for facebook its when your user first interacts with the bot. This is the intended way to greet users on setup. But it seems to me you are trying to have the bot say hello when it joins a users channel or vice versa, correct? |
@dipesh-gandhi Currently with ConsoleBot you can only test text input and conversations. There is not a way to tigger events such as There should be though! I will look into adding something. Be aware, however, that |
@jonchurch Thanks dude! |
I am having this issue as well - Botkit version |
@jonchurch It works as far as controller.on('bot_channel_join', function(bot, message) {
bot.reply(message, 'Yay, I have arrived!');
}); |
@chrisberthe Take a look at #514 |
Are you sure this was fixed? |
@JimTheMan +1, not working here either. |
I am listening to the
bot_channel_join
event as follows:However, when I invite the bot to a channel the event doesn't fire.
The text was updated successfully, but these errors were encountered: