From debcb50dcede18c86a4f74d6d384a3819af3ddd8 Mon Sep 17 00:00:00 2001 From: Louis Gillies Date: Sun, 23 Apr 2017 14:03:52 +0100 Subject: [PATCH] Fix listing errors --- lib/CoreBot.js | 4 ++-- lib/Tropo.js | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/CoreBot.js b/lib/CoreBot.js index ca89aeb6d..9a247a2d8 100755 --- a/lib/CoreBot.js +++ b/lib/CoreBot.js @@ -963,8 +963,8 @@ function Botkit(configuration) { keywords = [keywords]; } - if(keywords instanceof RegExp) { - keywords = [keywords] + if (keywords instanceof RegExp) { + keywords = [keywords]; } if (typeof(events) == 'string') { diff --git a/lib/Tropo.js b/lib/Tropo.js index c54729773..aa27c4c50 100644 --- a/lib/Tropo.js +++ b/lib/Tropo.js @@ -34,15 +34,15 @@ function Tropobot(configuration) { controller.handleWebhookPayload = function(req, res, bot) { - console.log('GOT PAYLOAD', req.body); - var payload = req.body.session; - var msg = { - user: payload.from.id, - text: payload.initialText, - channel: payload.from.id, - } + console.log('GOT PAYLOAD', req.body); + var payload = req.body.session; + var msg = { + user: payload.from.id, + text: payload.initialText, + channel: payload.from.id, + }; - controller.receiveMessage(bot, msg); + controller.receiveMessage(bot, msg); }; @@ -157,7 +157,7 @@ function Tropobot(configuration) { ciscospark_message[k] = message[k]; } - console.log("SAY", message); + console.log('SAY', message); // controller.api.messages.create(ciscospark_message).then(function(message) {