(handlerInput: HandlerInput)
| 25 | handlerInput.requestEnvelope.request.intent.name === 'AMAZON.NavigateHomeIntent'; |
| 26 | }, |
| 27 | async handle(handlerInput: HandlerInput): Promise<Response> { |
| 28 | const speechText = 'Hey, it\'s Pancakes the CDK Otter here, what would you like to know?'; |
| 29 | const repromptText = 'You can ask what CDK Patterns I have, if you like!'; |
| 30 | const { attributesManager } = handlerInput; |
| 31 | attributesManager.setPersistentAttributes( {lastAccessedDate: Date.now(), lastAccessedIntent: 'Launch Request or Navigate Home'}); |
| 32 | await attributesManager.savePersistentAttributes(); |
| 33 | return handlerInput.responseBuilder |
| 34 | .speak(speechText) |
| 35 | .reprompt(repromptText) |
| 36 | .withSimpleCard('Hello World', speechText) |
| 37 | .getResponse(); |
| 38 | }, |
| 39 | }; |
| 40 | const PatternListIntentHandler: RequestHandler = { |
| 41 | canHandle(handlerInput: HandlerInput): boolean { |
nothing calls this directly
no test coverage detected