Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Fix listing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgillies committed Apr 23, 2017
1 parent 29816d6 commit debcb50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/CoreBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
18 changes: 9 additions & 9 deletions lib/Tropo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

};

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit debcb50

Please sign in to comment.