scrapinghub / slackbot

A chat bot for Slack (https://slack.com).
MIT License
1.26k stars 396 forks source link

Attempted to use slackbot with new Slack App Settings - FAILED #207

Closed a0149659 closed 4 years ago

a0149659 commented 4 years ago

Looks like Slack is removing the generic Bot User token that slackbot uses. When creating a token by following the new slack instructions, the token fails with:```

  File "/usr/local/lib/python3.5/site-packages/slacker/__init__.py", line 816, in start
    'mpim_aware': int(mpim_aware),
  File "/usr/local/lib/python3.5/site-packages/slacker/__init__.py", line 120, in get
    api, **kwargs
  File "/usr/local/lib/python3.5/site-packages/slacker/__init__.py", line 102, in _request
    raise Error(response.error)
slacker.Error: missing_scope

From Slack: Slack has improved how we handle permissions for apps, so you can now request only the specific scopes your app needs. We recommend updating your app’s scopes. Beginning February 21, all new app submissions to the App Directory must use granular permissions. Read our blog post: https://medium.com/slack-developer-blog/more-precision-less-restrictions-a3550006f9c3