Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to join a Slack channel as a Real Time Messaging bot user?

Tags:

slack-api

channels.join is not allowed for bot users. I would like my RTM-using bot to listen to channels other than the one listed in the bot integration page.

I don't see a way to change the channels in the bot integration page:

bot integration page

Is this just a limitation of bots or am I missing something fundamental here?

like image 393
Dustin Wyatt Avatar asked Mar 27 '15 19:03

Dustin Wyatt


People also ask

Can Slack bot send direct message to user?

You may see Slackbot in channels throughout your workspace, delivering reminders and automated messages for you and your teammates. When there's a reminder or a message just for you, Slackbot will send you a DM. You can access your DM with Slackbot the same way you would find a DM with anyone else in your workspace.

How do I integrate Slack with chatbot?

Installation* Create your chatbot story. * Go to Slack integration and sign in with your Slack account. * Click Add bot to Slack button. * Select the story you want to use in this integration with and chose one Slack channel for your bot to live on.


1 Answers

I had the same issue and wasnt sure why my bot was only listening to certain channels.

Your bot will need to be invited to each channel by a user. Run this command within the required channel in the Slack app to do so

/invite @<your_bot_name> 

Once in the channel they should then be able to listen to events.

like image 70
Matt Gifford Avatar answered Sep 27 '22 21:09

Matt Gifford