Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- var APP_ID = 'amzn1.ask.skill.36aad7d9-ef3a-4256-bccf-e3580aee19c7';
- var SPEECH_OUTPUT_DOES = 'UHP is developing mobile and web applications.';
- var SPEECH_OUTPUT_FOUNDED = 'UHP was founded in late 2015.';
- var SPEECH_OUTPUT_LAUNCH = 'Ask me something about UHP Digital.';
- var AlexaSkill = require('./AlexaSkill');
- var UhpQAService = function() {
- AlexaSkill.call(this, APP_ID);
- };
- UhpQAService.prototype = Object.create(AlexaSkill.prototype);
- var doesResponseFunction = function(intent, session, response) {
- response.tell(SPEECH_OUTPUT_DOES);
- };
- var foundedResponseFunction = function(intent, session, response) {
- response.tell(SPEECH_OUTPUT_FOUNDED);
- };
- var launchResponseFunction = function(intent, session, response) {
- response.tell(SPEECH_OUTPUT_LAUNCH);
- };
- UhpQAService.prototype.eventHandlers.onLaunch = launchResponseFunction;
- //UhpQAService.prototype.eventHandlers.onLaunch = doesResponseFunction;
- //UhpQAService.prototype.eventHandlers.onLaunch = foundedResponseFunction;
- UhpQAService.prototype.intentHandlers = {
- 'testIntent': doesResponseFunction,
- 'uhpFounded': foundedResponseFunction
- };
- exports.handler = function(event, context) {
- var uhpQAService = new UhpQAService();
- uhpQAService.execute(event, context);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement