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
| from ask_sdk_core.dispatch_components import AbstractRequestHandler | |
| from ask_sdk_core.utils import is_intent_name | |
| #inicio de bienvenida a el modo cumpleaños y pregunta nombre | |
| class CumpleanosHandler(AbstractRequestHandler): | |
| def can_handle(self, handler_input): | |
| return is_intent_name("ModeCumpleIntent")(handler_input) | |
| def handle(self, handler_input): | |
| speak = "¡Wujuuu! Bienvenido al modo cumpleaños. ¿Quién es el festejado?" |
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 json | |
| import logging | |
| import urllib.request | |
| import urllib.error | |
| import urllib.parse | |
| from typing import Dict, List, Optional | |
| logger = logging.getLogger(__name__) | |
| logger.setLevel(logging.INFO) |