Skip to content

Instantly share code, notes, and snippets.

View TheDreamSaver's full-sized avatar
🏠
Busy making exquisite conversational experiences!

Ashish Jha TheDreamSaver

🏠
Busy making exquisite conversational experiences!
  • New Delhi
View GitHub Profile
@TheDreamSaver
TheDreamSaver / RockPaperScissorsIntentHandler.js
Last active May 29, 2021 09:01
Rock Paper Scissors Alexa Skill
const GamePlayIntentHandler = {
canHandle(handlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'GamePlayIntent';
},
handle(handlerInput) {
const userAction = Alexa.getSlotValue(handlerInput.requestEnvelope, 'choice');
let speakOutput = '';
@TheDreamSaver
TheDreamSaver / GetTriviaIntentHandler.js
Created April 13, 2020 16:19
Alexa Super Hero Trivia Skill
const GetTriviaIntentHandler = {
canHandle(handlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'GetTriviaIntent';
},
handle(handlerInput) {
let factArr = [
`Originally, Stan Lee wanted to make the Hulk grey, but due to issues with printing, they moved forward with the iconic green.`,
`Superman's first appearance was as a bald supervillain, bent on conquering the world.`,
`Bruce Wayne has an IQ of 192, beating out both Stephen Hawking and Albert Einstein.`,
@TheDreamSaver
TheDreamSaver / Work_Product_Submission_GSoC_2019.md
Last active February 5, 2020 21:12
Alexa Skill for Rocket.Chat Google Summer of Code Project 2019 Submission