RocketChat / hubot-natural

Natural Language Processing Chatbot for RocketChat
https://open.rocket.chat/channel/hubot-natural
MIT License
145 stars 44 forks source link

Small change on createMatch function #44

Closed richieri closed 6 years ago

richieri commented 6 years ago

For some reason, createMatch function is not recognizing res object. Some kind of context problem I guess.

When I put the bot in a group, it is not answering and I got an error saying that res is not defined in createMatch function.

I suggest to change the function so it can receive the text and the "match" which we are looking for, in this case the name or alias of the bot.

This closes #42

MatheusFaria commented 6 years ago

This PR is the same as the #36