Last active
April 17, 2018 21:41
-
-
Save jawa-the-hutt/acd25ee012a8307232d8631ffa1f497d to your computer and use it in GitHub Desktop.
alexa-function-constructor.js
This file contains 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
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