Created
July 17, 2017 11:04
-
-
Save pourmesomecode/5e8acd2e477e079ad5a3e55ee0f94acb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Alexa = require("alexa-sdk"); | |
exports.handler = function(event, context, callback) { | |
var alexa = Alexa.handler(event, context); | |
alexa.registerHandlers(handlers); | |
alexa.execute(); | |
}; | |
var handlers = { | |
'LaunchRequest': function () { | |
this.emit('SayHello'); | |
}, | |
'HelloWorldIntent': function () { | |
this.emit('SayHello') | |
}, | |
'SayHello': function () { | |
this.emit(':tell', 'Hello World!'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment