Commit 83df8474 authored by Simon Will's avatar Simon Will
Browse files

Merge branch 'master' into no_typing

parents 52380aff 18ee2797
Loading
Loading
Loading
Loading
+21 −2
Original line number Diff line number Diff line
@@ -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