You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.
after my first trial 'converting' my already existing slack app using this tutorial I tried to test it by adding another condition to the _event_handler function: ...
so when I message the bot, I want it to respond.
Had the same issue, this is what helped me:
Change bot.py line 37 from: self.client = SlackClient("")
to: self.client = SlackClient(os.environ["SLACK_API_TOKEN"])
And export SLACK_API_TOKEN with the app's Bot User OAuth Access Token found at OAuth & Permissions of your app.
I got the idea from here: https://github.com/slackapi/python-slackclient#sending-a-message.
hi,
after my first trial 'converting' my already existing slack app using this tutorial I tried to test it by adding another condition to the _event_handler function: ...
so when I message the bot, I want it to respond.
However everything always ends at the
bot.open_dm
function. the callnew_dm = self.client.api_call("im.open", user=user_id)
returns{"ok": false, "error": "not_authed"}
I'm not sure what I am missing...
The text was updated successfully, but these errors were encountered: