From: Carl Worth Date: Mon, 12 Oct 2020 03:08:13 +0000 (-0700) Subject: Switch from event['args'] to event['text'] for input to the lambda X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b0dd4f4f286d6a75c24e2dece947b18aede0790c;p=turbot Switch from event['args'] to event['text'] for input to the lambda Since that's what we actually get from Slack, (now that we have the "mapping template" in place so that we receive a dictionary here rather than a bunch of x-www-form-urlencoded data). --- diff --git a/turbot_lambda/turbot_lambda.py b/turbot_lambda/turbot_lambda.py index c2459e8..cfde85d 100644 --- a/turbot_lambda/turbot_lambda.py +++ b/turbot_lambda/turbot_lambda.py @@ -6,7 +6,7 @@ def turbot_lambda(event, context): Currently only calls into the rot() function but may become more sophisticated later on.""" - result = rot(event['args']) + result = rot(event['text']) return { 'statusCode': 200,