This file contains hidden or 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
| ############################## | |
| # Program Entry | |
| ############################## | |
| def lambda_handler(event, context): | |
| if event['request']['type'] == "LaunchRequest": | |
| return on_launch(event, context) | |
| elif event['request']['type'] == "IntentRequest": | |
| return intent_router(event, context) |
This file contains hidden or 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
| ############################## | |
| # Builders | |
| ############################## | |
| def build_PlainSpeech(body): | |
| speech = {} | |
| speech['type'] = 'PlainText' | |
| speech['text'] = body | |
| return speech |
This file contains hidden or 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
| jedi==0.10.2 | |
| pbr==3.1.1 | |
| pycodestyle==2.3.1 | |
| six==1.10.0 | |
| stevedore==1.23.0 | |
| virtualenv==15.1.0 | |
| virtualenv-clone==0.2.6 | |
| virtualenvwrapper==4.7.2 | |
| yapf==0.16.2 |
This file contains hidden or 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 | |
| import coloredlogs | |
| LOG_FORMAT = '%(asctime)s %(levelname)-8s %(message)s' | |
| LOG_DATE = "%Y-%m-%d %H:%M:%S" | |
| LOG_STYLE = dict( | |
| debug=dict(color='cyan', bold=True), | |
| info=dict(color='green', bold=True), | |
| verbose=dict(color='white'), | |
| warning=dict(color='yellow', bold=True), |
NewerOlder