]> git.cworth.org Git - turbot/commitdiff
Simply return the result string from the Lambda
authorCarl Worth <cworth@cworth.org>
Mon, 12 Oct 2020 03:44:55 +0000 (20:44 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 12 Oct 2020 03:44:55 +0000 (20:44 -0700)
This way, Slack will just display that which is convenient.

turbot_lambda/turbot_lambda.py

index cfde85dbc1a4a7bf541cb5de0591b26e5fffd56b..d441565186ab563470778c603a08732417f4cece 100644 (file)
@@ -6,9 +6,4 @@ def turbot_lambda(event, context):
     Currently only calls into the rot() function but may become more
     sophisticated later on."""
 
-    result = rot(event['text'])
-
-    return {
-        'statusCode': 200,
-        'body': result
-    }
+    return rot(event['text'])