Skip to content

Commit

Permalink
Merge pull request #1 from chrisj-porch/patch-1
Browse files Browse the repository at this point in the history
including the cardContent from :askWithCard and :tellWithCard
  • Loading branch information
deegles authored Aug 1, 2016
2 parents 6c82db0 + 87a76c5 commit 87f0748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function buildSpeechletResponse(options) {
alexaResponse.card['image'] = {};

delete alexaResponse.card.content;
alexaResponse.card.text = options.content;
alexaResponse.card.text = options.cardContent;

if(options.cardImage.smallImageUrl) {
alexaResponse.card.image['smallImageUrl'] = options.cardImage.smallImageUrl;
Expand Down Expand Up @@ -202,4 +202,4 @@ function getSSMLResponse(message) {
type: 'SSML',
speech: `<speak> ${message} </speak>`
};
}
}

0 comments on commit 87f0748

Please sign in to comment.