X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=turbot_lambda%2Fturbot_lambda.py;h=b6f4a36049360a4e154ac6bf1e6ca3217df8af69;hb=3fee4ba343009c49038bf7148f442e02ecaea87a;hp=5420b33dc36726a7e63423f4bb08a678a5beea11;hpb=9d0b128dcb0af08c9586d526e8ed1c01a57e6973;p=turbot diff --git a/turbot_lambda/turbot_lambda.py b/turbot_lambda/turbot_lambda.py index 5420b33..b6f4a36 100644 --- a/turbot_lambda/turbot_lambda.py +++ b/turbot_lambda/turbot_lambda.py @@ -98,8 +98,8 @@ def url_verification_handler(body): def event_callback_handler(body): type = body['event']['type'] - if type == 'app_home_opened': - return turbot.events.app_home_opened(slack_client, body) + if type in turbot.events.events: + return turbot.events.events[type](slack_client, body) return error("Unknown event type: {}".format(type)) def turbot_interactive_or_slash_command(event, context):