From b7be3c10838acf5c71a4636bc80fef1816286c47 Mon Sep 17 00:00:00 2001 From: arinehouse Date: Mon, 27 Mar 2017 21:22:02 -0400 Subject: [PATCH] fix crash maybe --- app/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server.js b/app/server.js index 35a1bdd..902db40 100644 --- a/app/server.js +++ b/app/server.js @@ -40,9 +40,9 @@ controller.hears(['help'], ['direct_message', 'direct_mention', 'mention'], (bot controller.hears(['post'], ['direct_message'], (bot, message) => { bot.startConversation(message, (err, convo) => { - convo.ask('Sure! Where do you want to post? (Don\'t include the # symbol)', (response, conversation) => { + convo.ask('Sure! Where do you want to post? (Don\'t include the # symbol)', (resp, conv) => { pubChannels.forEach((channel) => { - if (channel.name === response) { specChannel = channel; } + if (channel.name === resp) { specChannel = channel; } }); }); convo.ask('Okay! What do you want to post to #' + specChannel.name + '?', (response, conversation) => {