mattmakai / fullstackpython.com

Full Stack Python source with Pelican, Bootstrap and Markdown.
https://www.fullstackpython.com/
MIT License
2.88k stars 627 forks source link

Obtaining API token for Slack StarterBot #125

Open mwunderlich opened 7 years ago

mwunderlich commented 7 years ago

Hi Matt,

Thanks a lot for your very helpful tutorial about creating a first slack bot in python (https://www.fullstackpython.com/blog/build-first-slack-bot-python.html). I have tried to follow the instructions, but the place for obtaining the bot's API token seems to have changed. The section "Integration Settings" also no longer seems to be available on the Slack API site. Maybe it's just me not being able to find it, but you might want to take quick look into it, when you have time. Thanks a lot.

Cheers,

Martin

mattmakai commented 7 years ago

Hmm, it's totally possible the way integrations are handled has been changed, but these tutorial steps still seem to work when I go through them. What happens when you click the "a new bot user integration" link to create a bot?

mwunderlich commented 7 years ago

I don't really have that exact link text anywhere. For me, adding a bot is done like this:

bildschirmfoto 2017-03-23 um 11 20 11

Afterwards, the bot user is active, but no API key to be found anywhere.

mattmakai commented 7 years ago

gahhh yea I see it...Slack changed the add bot flow. I'll have to go back through the tutorial and update it for the new screens. thank you for the heads up @mwunderlich! sorry about that :(

mwunderlich commented 7 years ago

Thanks for confirming, Matt. At least, I wasn't imaginging things. I hope it won't be too much trouble updating the tutorial.

mwunderlich commented 7 years ago

@mattmakai I think I have found the correct way to retrieve the API token: you need to use the "Bot User OAuth Access Token" listed under "Features>OAuth & Permissions"