Skip to content

Instantly share code, notes, and snippets.

View sohanmaheshwar's full-sized avatar

Sohan sohanmaheshwar

View GitHub Profile
arn:aws:lambda:us-east-1:247115765381:function:serverlessrepo-alexa-skil-alexaskillskitnodejsfact-44WJ92Q4Q6WI
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest'
|| (request.type === 'IntentRequest'
/* eslint-disable func-names */
/* eslint-disable no-console */
// IMPORTANT: Please note that this template uses Dispay Directives,
// Display Interface for your skill should be enabled through the Amazon developer console
// See this screenshot - https://alexa.design/enabledisplay
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {