Skip to content

Instantly share code, notes, and snippets.

@sammachin
Created March 5, 2018 17:01
Show Gist options
  • Save sammachin/35454b1417e97a87b0e7b73ac4c9abac to your computer and use it in GitHub Desktop.
Save sammachin/35454b1417e97a87b0e7b73ac4c9abac to your computer and use it in GitHub Desktop.
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