]> git.cworth.org Git - turbot/commitdiff
Switch from event['args'] to event['text'] for input to the lambda
authorCarl Worth <cworth@cworth.org>
Mon, 12 Oct 2020 03:08:13 +0000 (20:08 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 12 Oct 2020 03:43:42 +0000 (20:43 -0700)
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

index c2459e879f04e7912380c2eb5602a385387253fd..cfde85dbc1a4a7bf541cb5de0591b26e5fffd56b 100644 (file)
@@ -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,