Skip to content

Instantly share code, notes, and snippets.

View jhegele's full-sized avatar

John Hegele jhegele

  • Marqeta
  • Durham, NC
View GitHub Profile
'GoOutIntent': function () {
getWeather( (weatherData) => {
let say = `The high temperature will be ${weatherData.temp} in ${weatherData.city} and conditions are forecast to be ${weatherData.conditions}.`;
this.emit(':tell', say, say);
// getWordsmithNarrative({data: weatherData}, (say) => {
// this.emit(':tell', say, say);
// })
});
},
var wordsmithKey = 'YOUR KEY HERE';
var Alexa = require('alexa-sdk');
var https = require('https');
// 1. Text strings =====================================================================================================
// Modify these strings and messages to change the behavior of your Lambda function
var languageStrings = {
'en': {