From: Carl Worth Date: Mon, 12 Oct 2020 03:44:55 +0000 (-0700) Subject: Simply return the result string from the Lambda X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=80563b79190c7c27ab96fd6a57afe5589631ad89;hp=b0dd4f4f286d6a75c24e2dece947b18aede0790c;p=turbot Simply return the result string from the Lambda This way, Slack will just display that which is convenient. --- diff --git a/turbot_lambda/turbot_lambda.py b/turbot_lambda/turbot_lambda.py index cfde85d..d441565 100644 --- a/turbot_lambda/turbot_lambda.py +++ b/turbot_lambda/turbot_lambda.py @@ -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'])