Skip to content

Commit

Permalink
Rename ShoppingIntent to WhatCanIBuyIntent
Browse files Browse the repository at this point in the history
  • Loading branch information
franklin-lobb committed Feb 20, 2019
1 parent 2b549fb commit 2007984
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lambda/custom/index.js
Expand Up @@ -313,13 +313,13 @@ const GetCategoryFactHandler = {
// Following handler demonstrates how skills can handle user requests to discover what
// products are available for purchase in-skill.
// Use says: Alexa, ask Premium facts what can i buy
const ShoppingHandler = {
const WhatCanIBuyHandler = {
canHandle(handlerInput) {
return handlerInput.requestEnvelope.request.type === 'IntentRequest' &&
handlerInput.requestEnvelope.request.intent.name === 'ShoppingIntent';
handlerInput.requestEnvelope.request.intent.name === 'WhatCanIBuyIntent';
},
handle(handlerInput) {
console.log('In Shopping Handler');
console.log('In WhatCanIBuy Handler');

// Inform the user about what products are available for purchase
let speakOutput;
Expand Down Expand Up @@ -771,7 +771,7 @@ exports.handler = Alexa.SkillBuilders.standard()
GetCategoryFactHandler,
BuyResponseHandler,
CancelResponseHandler,
ShoppingHandler,
WhatCanIBuyHandler,
ProductDetailHandler,
BuyHandler,
CancelSubscriptionHandler,
Expand Down
2 changes: 1 addition & 1 deletion models/en-US.json
Expand Up @@ -59,7 +59,7 @@
]
},
{
"name": "ShoppingIntent",
"name": "WhatCanIBuyIntent",
"slots": [],
"samples": [
"I want to purchase",
Expand Down

0 comments on commit 2007984

Please sign in to comment.