Skip to content

Instantly share code, notes, and snippets.

@jawa-the-hutt
Last active April 17, 2018 21:41
Show Gist options
  • Save jawa-the-hutt/acd25ee012a8307232d8631ffa1f497d to your computer and use it in GitHub Desktop.
Save jawa-the-hutt/acd25ee012a8307232d8631ffa1f497d to your computer and use it in GitHub Desktop.
alexa-function-constructor.js
constructor(context, req) {
this.context = context;
this.req = req;
this.alexa = alexa;
// setup the connection to the alexa-skill-sdk-for-azure-function library
this.alexa.setup({
azureCtx: context,
azureReq: req,
handlers: [
skillHandlers
],
trackInvokedIntents: false,
enforceVerifier: false,
alexaAppId: GetEnvironmentVariable('ALEXA_APP_ID')
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment