Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pourmesomecode/5e8acd2e477e079ad5a3e55ee0f94acb to your computer and use it in GitHub Desktop.
Save pourmesomecode/5e8acd2e477e079ad5a3e55ee0f94acb to your computer and use it in GitHub Desktop.
'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