Open Stevenic opened 8 years ago
Doubt it will happen but you should probably call next() if you don't have message,text
middleware.receive = function(bot, message, next) { if (message.text) { wit.captureTextIntent(config.token, message.text, function(err, res) { if (err) { next(err); } else { console.log(JSON.stringify(res)); message.intents = res.outcomes; next(); } }); } };
Doh! Good catch.
Doubt it will happen but you should probably call next() if you don't have message,text