From 3b57f6a80e12b442bae8c3aa7b1bf55f12a6aa46 Mon Sep 17 00:00:00 2001 From: Damon Aw Date: Thu, 29 Jun 2017 21:14:27 -0400 Subject: [PATCH] I am an idiot --- handlers/store-favorite-line.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/store-favorite-line.js b/handlers/store-favorite-line.js index c979785..ca650c6 100644 --- a/handlers/store-favorite-line.js +++ b/handlers/store-favorite-line.js @@ -4,11 +4,11 @@ const closestLineMatcher = require('../utilities/closest-line-matcher.js'); module.exports = function() { let heardNameGroup = this.event.request.intent.slots.subwayLineOrGroup.value; - if(!nameGroup) { this.emit(':tell', "Sorry, I didn't hear a subway line or group I recognized") }; + if(!heardNameGroup) { this.emit(':tell', "Sorry, I didn't hear a subway line or group I recognized") }; fetchMTAStatus(statuses => { let closestLine = closestLineMatcher(statuses, 'nameGroup', heardNameGroup); - this.emit('tell', `Your favorite line is ${closestLine.nameGroup}`); + this.emit(':tell', `Your favorite line is ${closestLine.nameGroup}`); }); }