From 626b15da5fad8fb1deca56cb5cc0eaf0238531f1 Mon Sep 17 00:00:00 2001 From: James Ives Date: Tue, 4 Dec 2018 07:40:26 -0500 Subject: [PATCH 1/2] Verbage --- functions/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index d496af2..f394ec5 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -26,7 +26,7 @@ app.intent( const timetable: any = await fetchTrainTimetable(station); if (!timetable) { - conv.close('I was not able to find a station by that name.'); + conv.close('I was not able to find a station by that name. Please double check the name you provided and try again.'); } else { // Generates the neccersary table cells for display devices. const timetableCells = timetable.predictions.map((item) => { @@ -252,7 +252,7 @@ app.intent( } } else { conv.close( - 'I could not find a bus stop with that id. The stop id is located on the sign that the bus stops at.' + 'I could not find a bus stop with that id. Please double checkthe number and try again, the stop id is located on the sign that the bus stops at.' ); } } else { From 636f3f2f67303770c8fb122abe7f717292e08904 Mon Sep 17 00:00:00 2001 From: James Ives Date: Tue, 4 Dec 2018 07:40:37 -0500 Subject: [PATCH 2/2] Lint --- functions/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index f394ec5..482dbfe 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -26,7 +26,9 @@ app.intent( const timetable: any = await fetchTrainTimetable(station); if (!timetable) { - conv.close('I was not able to find a station by that name. Please double check the name you provided and try again.'); + conv.close( + 'I was not able to find a station by that name. Please double check the name you provided and try again.' + ); } else { // Generates the neccersary table cells for display devices. const timetableCells = timetable.predictions.map((item) => {