Created
October 23, 2018 13:01
-
-
Save frivas/843085cf10a107e3fda370c8bbc1cb36 to your computer and use it in GitHub Desktop.
CancelAndStopIntentHandler. Medium Article. Creating an Alexa Skill Using Python
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
class CancelAndStopIntentHandler(AbstractRequestHandler): | |
def can_handle(self, handler_input): | |
return (is_intent_name("AMAZON.CancelIntent")(handler_input) or | |
is_intent_name("AMAZON.StopIntent")(handler_input)) | |
def handle(self, handler_input): | |
speechText = "Hasta la próxima aventura exploradores!." | |
return handler_input.response_builder.speak(speechText).response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment