From b0dd4f4f286d6a75c24e2dece947b18aede0790c Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 11 Oct 2020 20:08:13 -0700 Subject: [PATCH] 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). --- turbot_lambda/turbot_lambda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.43.0