botkit-middleware-witai icon indicating copy to clipboard operation
botkit-middleware-witai copied to clipboard

wit.ai is not called when directly messaging bot

Open makstaks opened this issue 7 years ago • 1 comments

In botkit-middleware-witai.js, the receive function has this condition:

message.text && message.text.indexOf(bot.identity.id) > -1)

When I directly message the bot, the message.text doesn't contain the bot's identity so this always condition always fails. I want to be able to DM the bot, and have wit.ai process the message.

makstaks avatar Jan 12 '17 07:01 makstaks