Botkit: bot.say doesn't work for a Slack bot

Created on 24 Nov 2016  路  4Comments  路  Source: howdyai/botkit

bot.reply, .startConversation and .startPrivavateConversation work, but when I try to use


bot.say({
text:'something',
channel:'C2CHANNELID'
});

it doesn't go through. Currently I am using bot.api.chat.postMessage as a workaround since that appears to be working.

help wanted

Most helpful comment

What version of botkit are you using? If you are using 0.4.2 can you try 0.4.1 (https://github.com/howdyai/botkit/archive/v0.4.1.zip) and see if you get the same issue.

Also posting more code or your entire code would be a lot more helpful and your debug information.

Alex

All 4 comments

What version of botkit are you using? If you are using 0.4.2 can you try 0.4.1 (https://github.com/howdyai/botkit/archive/v0.4.1.zip) and see if you get the same issue.

Also posting more code or your entire code would be a lot more helpful and your debug information.

Alex

@TheJimFactor I think I saw you working through this issue on dev4slack, did you get sorted?

Hey @alexbudin I've tested using the updated Botkit version 0.4.2. and it's working perfectly fine.

bot.say({
      text: "Welcome to our test zone!",
      channel: 'G38RUGE4D' // channel Id for #slack_integration
  });

Results

Slack Chat Bot

Is your bot a member of the channel you are trying to post to?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imjul1an picture imjul1an  路  3Comments

benbrown picture benbrown  路  3Comments

abinashmohanty picture abinashmohanty  路  4Comments

RafaelCosman picture RafaelCosman  路  4Comments

fieldcorbett picture fieldcorbett  路  4Comments