+from urllib.parse import parse_qs
from turbot.rot import rot
def turbot_lambda(event, context):
Currently only calls into the rot() function but may become more
sophisticated later on."""
- result = rot(event['text'])
+ body = parse_qs(event['body'])
+ result = rot(body['text'][0])
return {
'statusCode': 200,