Skip to content

Instantly share code, notes, and snippets.

@jawa-the-hutt
Last active April 17, 2018 21:42
Show Gist options
  • Save jawa-the-hutt/aa410818aeb1e200695bfc51f4556b86 to your computer and use it in GitHub Desktop.
Save jawa-the-hutt/aa410818aeb1e200695bfc51f4556b86 to your computer and use it in GitHub Desktop.
start-method.js
async start() {
try{
// make the connection async/await capable
return await asyncIt(cb => this.alexa.execute(cb)).then(result => {
this.context.log('result - ', result);
return {
status: 200,
body: result
};
});
} catch (e){
return e;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment