I tried to do an install today and did not make it past the npm install - I downloaded the latest npm - should I send you a log file?
I am super excited to use your plug in I think I understand it or the basics anyway.
Joe
theprompt:~$ nvm --version
0.24.1
theprompt:~$ npm version
{ http_parser: '1.0',
node: '0.10.38',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.36',
zlib: '1.2.8',
modules: '11',
openssl: '1.0.1m',
npm: '1.4.28' }
{
"intents": [
{
"intent": "HelloWorldIntent",
"slots": []
},
{
"intent": "HelpIntent",
"slots": []
}
]
}
// Alexa SDK for JavaScript v1.0.00
// Copyright (c) 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. Use is subject to license terms.
/**
* This simple sample has no external dependencies or session management, and shows the most basic
* example of how to create a Lambda function for handling Alexa Skill requests.
*
* Examples:
* One-shot model:
* User: "Alexa, tell Greeter to say hello"
* Alexa: "Hello World!"
*/
/**
* App ID for the skill
*/
var APP_ID = undefined; //replace with "amzn1.echo-sdk-ams.app.[your-unique-value-here]";
/**
* The AlexaSkill prototype and helper functions
*/
var AlexaSkill = require('./AlexaSkill');
/**
* HelloWorld is a child of AlexaSkill.
* To read more about inheritance in JavaScript, see the link below.
*
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript#Inheritance
*/
var HelloWorld = function () {
AlexaSkill.call(this, APP_ID);
};
// Extend AlexaSkill
HelloWorld.prototype = Object.create(AlexaSkill.prototype);
HelloWorld.prototype.constructor = HelloWorld;
HelloWorld.prototype.eventHandlers.onSessionStarted = function (sessionStartedRequest, session) {
console.log("HelloWorld onSessionStarted requestId: " + sessionStartedRequest.requestId
+ ", sessionId: " + session.sessionId);
// any initialization logic goes here
};
HelloWorld.prototype.eventHandlers.onLaunch = function (launchRequest, session, response) {
console.log("HelloWorld onLaunch requestId: " + launchRequest.requestId + ", sessionId: " + session.sessionId);
var speechOutput = "Welcome to the Alexa Skills Kit, you can say hello";
response.ask(speechOutput);
};
HelloWorld.prototype.eventHandlers.onSessionEnded = function (sessionEndedRequest, session) {
console.log("HelloWorld onSessionEnded requestId: " + sessionEndedRequest.requestId
+ ", sessionId: " + session.sessionId);
// any cleanup logic goes here
};
HelloWorld.prototype.intentHandlers = {
// register custom intent handlers
HelloWorldIntent: function (intent, session, response) {
response.tellWithCard("Hello World!", "Greeter", "Hello World!");
},
HelpIntent: function (intent, session, response) {
response.ask("You can say hello to me!");
}
};
// Create the handler that responds to the Alexa Request.
exports.handler = function (event, context) {
// Create an instance of the HelloWorld skill.
var helloWorld = new HelloWorld();
helloWorld.execute(event, context);
};
Users browsing this forum: No registered users and 4 guests