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

Dustin Wyatt picture Dustin Wyatt · Mar 27, 2015 · Viewed 11.4k times · Source

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?

Answer

Matt Gifford picture Matt Gifford · Mar 30, 2015

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.