I am the admin of a Slack team.
Is there a way that I can auto-invite a bot to all slack channels that are created in my team?
Yes, that is possible for public channels, but not for private channels.
You can subscribe to event types and use either the RTM API or the Event API to make your bot listen to those events and react accordingly.
The event channel_created will be triggered each time a new public channel is created.
Unfortunately there is no pendant (e.g. group_created) for private channels (called "groups" in the API). I am guessing this is for security reasons. Private channels can only be accessed by a user or bot that is invited, so even admins
and owners
can not access private channels on their Slack team, which there have not been invited to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With