MCPcopy Create free account
hub / github.com/cdk-patterns/serverless / canHandle

Function canHandle

the-alexa-skill/python/lambda_fns/lambda.ts:22–26  ·  view source on GitHub ↗
(handlerInput: HandlerInput)

Source from the content-addressed store, hash-verified

20}
21const LaunchRequestHandler: RequestHandler = {
22 canHandle(handlerInput: HandlerInput): boolean {
23 return handlerInput.requestEnvelope.request.type === 'LaunchRequest' ||
24 handlerInput.requestEnvelope.request.type === 'IntentRequest' &&
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!';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected