Skip to content

Commit

Permalink
fix crash maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
arinehouse committed Mar 28, 2017
1 parent a97360d commit b7be3c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b7be3c1

Please sign in to comment.