1 from urllib.parse import parse_qs
2 from turbot.rot import rot
4 def turbot_lambda(event, context):
5 """Top-level entry point for our lambda function.
7 Currently only calls into the rot() function but may become more
8 sophisticated later on."""
10 body = parse_qs(event['body'])
11 result = rot(body['text'][0])