Loading alexa_metal_archives_lookup.py +21 −2 Original line number Diff line number Diff line Loading @@ -111,13 +111,32 @@ def band_lookup_endpoint(bandName: str) -> statement: return statement(response).simple_card('BandLookup', response) @ask.intent('AMAZON.CancelIntent') def cancel_endpoint() -> statement: response = 'Lookup canceled' return statement(response).simple_card('AMAZON.CancelIntent', response) @ask.intent('AMAZON.StopIntent') def stop_endpoint() -> statement: response = 'Lookup stopped' return statement(response).simple_card('AMAZON.StopIntent', response) @ask.intent('AMAZON.HelpIntent') def help_endpoint() -> statement: response = ('For example, say:' ' “Tell Metal Archives to look up the band Black Sabbath.”') return statement(response).simple_card('AMAZON.StopIntent', response) @ask.launch def launched() -> question: def launch_endpoint() -> question: return question('What band do you want to look up?') @ask.session_ended def session_ended() -> tuple: def session_ended_endpoint() -> tuple: return '{}', 200 Loading Loading
alexa_metal_archives_lookup.py +21 −2 Original line number Diff line number Diff line Loading @@ -111,13 +111,32 @@ def band_lookup_endpoint(bandName: str) -> statement: return statement(response).simple_card('BandLookup', response) @ask.intent('AMAZON.CancelIntent') def cancel_endpoint() -> statement: response = 'Lookup canceled' return statement(response).simple_card('AMAZON.CancelIntent', response) @ask.intent('AMAZON.StopIntent') def stop_endpoint() -> statement: response = 'Lookup stopped' return statement(response).simple_card('AMAZON.StopIntent', response) @ask.intent('AMAZON.HelpIntent') def help_endpoint() -> statement: response = ('For example, say:' ' “Tell Metal Archives to look up the band Black Sabbath.”') return statement(response).simple_card('AMAZON.StopIntent', response) @ask.launch def launched() -> question: def launch_endpoint() -> question: return question('What band do you want to look up?') @ask.session_ended def session_ended() -> tuple: def session_ended_endpoint() -> tuple: return '{}', 200 Loading