From b76bb7c02960a951c9860dab7ba697ff0aa9f362 Mon Sep 17 00:00:00 2001 From: Wade Wegner Date: Sun, 7 Aug 2016 13:17:29 -0500 Subject: [PATCH] updated messages --- src/web/routes.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/web/routes.js b/src/web/routes.js index 7a86116..fbc547f 100644 --- a/src/web/routes.js +++ b/src/web/routes.js @@ -172,22 +172,20 @@ module.exports = function(app) { var twiml = new twilio.TwimlResponse(); var message = ''; -// var string = "foo", -// substring = "oo"; -// console.log(string.indexOf(substring) !== -1); if (body.toLowerCase().indexOf('cool') !== -1) { - message = 'To get your current BAC, txt "bac".'; + message = 'To get your current BAC, txt "bac". To add a drink w/o Untapped txt "new {oz} {abv}".'; } else if (body.toLowerCase().indexOf('bac') !== -1) { - message = 'prompt bac calc in progress'; + message = 'Prompt bac calc in progress'; + } else if (body.toLowerCase().indexOf('new') !== -1) { + message = 'new addition in progress'; } else { message = 'We did not understand. Txt "COOL" for commands.'; } twiml.message(message); response.send(twiml); - }); });