Open makstaks opened 7 years ago
In botkit-middleware-witai.js, the receive function has this condition:
botkit-middleware-witai.js
receive
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.
message.text
@peterswimm I opened a PR to fix this bug here: https://github.com/howdyai/botkit-middleware-witai/pull/21
In
botkit-middleware-witai.js
, thereceive
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.