Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate adding the bot user to new/included channels #1

Open
dishonesthips opened this issue May 3, 2019 · 2 comments
Open

Automate adding the bot user to new/included channels #1

dishonesthips opened this issue May 3, 2019 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@dishonesthips
Copy link
Contributor

Bots can't invite themselves to channels 😞. We should use the user_token to invite the bot user to new/included channels so that it doesn't need to be done manually.

@dishonesthips
Copy link
Contributor Author

Slack's Conversations API allows us to invite users to channels given their ID. Unfortunately, the API doesn't make it easy to retrieve bot IDs. We'll need to paginate through the users.list endpoint and look for the bot user.

In fact, this process could happen on startup and then be loaded into the GenServer state

@dishonesthips dishonesthips added the enhancement New feature or request label May 3, 2019
@dishonesthips dishonesthips added this to the v0.2 milestone May 13, 2019
@dishonesthips
Copy link
Contributor Author

discovered: the auth.test endpoint to allow a bot to get its own id

This means we dont have to paginate through all users to get the id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant