From 80563b79190c7c27ab96fd6a57afe5589631ad89 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 11 Oct 2020 20:44:55 -0700 Subject: [PATCH 1/1] Simply return the result string from the Lambda This way, Slack will just display that which is convenient. --- turbot_lambda/turbot_lambda.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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']) -- 2.43.0