Created
March 5, 2018 17:01
-
-
Save sammachin/35454b1417e97a87b0e7b73ac4c9abac 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
var handlers = { | |
'LaunchRequest': function () { | |
this.emit('SayHello'); | |
}, | |
'SayHello': function(){ | |
if (this.event.user.hasOwnProperty('accessToken')) { | |
this.response.speak('Hello User'); | |
this.emit(':responseReady'); | |
} | |
else { | |
this.response.speak('You need to link your Vonage account, see the instructions in the Alexa App'); | |
this.emit(':responseReady'); | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment