Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

problems getting started #7

Description

@transfluxus

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.

    elif event_type == 'message':
        user_id = slack_event['event']['user']
        print user_id, team_id
        pyBot.onboarding_message(team_id, user_id)
        return make_response("Welcome Message Sent", 200, )

However everything always ends at the bot.open_dm function. the call
new_dm = self.client.api_call("im.open", user=user_id) returns
{"ok": false, "error": "not_authed"}

I'm not sure what I am missing...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions