JAY WILSON JR.

I bring ideas and visions to life. Which of your ideas should we focus on first?

Ilu1

Code Sample

JavaScript

Creating a Amazon Alexa App

var APP_ID = "amzn1.ask.skill.8672g7276t367gg-0457-4aab-vugugw34d-c219aef87162"; 

var QUOTES = [
    "Be willing to leave your comfort zone. The greatest barrier to achieving your potential is your comfort zone. Great things happen when you make friends with your discomfort zone. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Don’t be afraid to make mistakes. Wisdom helps us avoid making mistakes and wisdom is gained by making a ton of mistakes. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Don’t indulge in self-limiting thinking. Think empowering, expansive thoughts. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Choose to be happy. Happy people are easily motivated. Happiness is your birthright so don’t settle for anything less. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Spend at least one hour a day on self-development. Read good books or listen to inspiring audio programs. Driving to and from work provides an excellent opportunity to listen to self-improvement audio books or podcasts. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Train yourself to finish what you start. So many of us become scattered as we try to accomplish a task. Finish one task before you begin another. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Live fully in the present moment. When you live in the past or the future you aren’t able to make things happen in the present. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "It's not what you are, that holds you back in life. It's what you think you are not, that holds you back. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "What you do every day will turn into a habit. Choose habits that will lead you to success, and repeat them every day. In time, they will become automatic, not requiring thought, attention or effort. There are many new habits you can adopt, such as positive thinking, being on time, being more considerate, getting a stronger willpower or staying calm in difficult situations. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Imagination, often turns into reality. Imagine a certain situation over and over again, and sooner or later you will attract it into your life, provided you don’t let contradictory thoughts enter your mind. Start with simple situations first, to gain faith and experience with this process. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Letting your mood control your life, is like sitting in a boat while letting the waves and currents take you wherever they please. Developing inner strength and self-discipline is like attaching a powerful engine to your boat. With this powerful engine, you will be able to navigate the waves of your emotions and direct your life wherever you want... no matter how you might feel in the moment. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Never lose faith, no matter how bleak things look. Faith is the rope that will pull you up. It is your connection, your stairway, to get your dreams and expectations realized. Never let go of the rope of faith. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "To get positive results from positive thinking, you should also take positive action. Positive thinking would make you happy, good-natured and optimistic. It will also make you aware of opportunities. Positive action would make positive thinking work for you and bring the results you want. Take action, to make things happen. This is positive thinking in action. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Treat your time like money in the bank. What do you spend it on? Don’t waste your time. Use it correctly. Every day that passes is like an amount of money that you drew from your account. If you are careful with your money, you should be also careful with your time. Spend it on something that helps you, adds value to your life, gets you somewhere, and helps other people. Visit Motivationcast.com for more motivational tips, videos, training and tools.",
    "Adopt an attitude of calmness and of open-mindedness. Such an attitude will make it easier for you to see new opportunities, conceive new ideas, focus on goals, and see things from a different point of view. This will increase your chances of achieving success. In addition to this remember that we should always have an attitude of gratitude. Visit Motivationcast.com for more motivational tips, videos, training and tools."
];

var AlexaSkill = require('./AlexaSkill');

var Quote = function () {
    AlexaSkill.call(this, APP_ID);
};

Quote.prototype = Object.create(AlexaSkill.prototype);
Quote.prototype.constructor = Quote;

Quote.prototype.eventHandlers.onSessionStarted = function (sessionStartedRequest, session) {
    //console.log("onSessionStarted requestId: " + sessionStartedRequest.requestId + ", sessionId: " + session.sessionId);
};

Quote.prototype.eventHandlers.onLaunch = function (launchRequest, session, response) {
    handleNewQuoteRequest(response);
};

Quote.prototype.eventHandlers.onSessionEnded = function (sessionEndedRequest, session) {
    //console.log("onSessionEnded requestId: " + sessionEndedRequest.requestId + ", sessionId: " + session.sessionId);
};

Quote.prototype.intentHandlers = {
    "GetNewQuoteIntent": function (intent, session, response) {
        handleNewQuoteRequest(response);
    },

    "AMAZON.HelpIntent": function (intent, session, response) {
        response.ask("You can say tell me a motivational quote... What can I help you with?", "What can I help you with?");
    },

    "AMAZON.StopIntent": function (intent, session, response) {
        var speechOutput = "Goodbye";
        response.tell(speechOutput);
    },

    "AMAZON.CancelIntent": function (intent, session, response) {
        var speechOutput = "Goodbye";
        response.tell(speechOutput);
    }
};

function handleNewQuoteRequest(response) {
    var quoteIndex = Math.floor(Math.random() * QUOTES.length);
    var randomQuote = QUOTES[quoteIndex];

    var speechOutput = "Here's your tip from Motivationcast.com... " + randomQuote;
    var cardTitle = "Your Motivation Tip";
    response.tellWithCard(speechOutput, cardTitle, speechOutput);
}

exports.handler = function (event, context) {
    var quote = new Quote();
    quote.execute(event, context);
};

Contact Me