Created
September 28, 2017 19:52
-
-
Save pvgomes/3c7bd2638bb4766f1ef368851b8a71be to your computer and use it in GitHub Desktop.
Slack lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
log = logging.getLogger() | |
log.setLevel(logging.DEBUG) | |
def lambda_handler(event, context): | |
bot_event = event | |
command = bot_event['text'] | |
print command | |
print(event) | |
log.debug(event) | |
return { | |
'text': 'Your command: ' + bot_event['text'] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment