b3nj4m / hubot-react

7 stars 10 forks source link

Multi-word term #4

Open cstan11 opened 9 years ago

cstan11 commented 9 years ago

Hi I am not sure if this is a misunderstanding from my part. The multi-word term does not work as expected. This is how I have issued the command

CS: react "test1 test2" with Test_success Bot: Reacting to "test1 with test2" with Test_success

I was expecting hubot to listen for a sentence with "test1 test2". However this is the result

CS: "test1 Bot: test2" with Test_success

Is this by design?

dylanh724 commented 9 years ago

This seems like a bug, im having this issue too! Help ~

dylanh724 commented 9 years ago

Any word? Seems that the user commented on Jan 1 and was never fixed. This is a lovely script .. it'd be a shame if bots can only respond to ONE single word..

pperez commented 9 years ago

:+1:

dylanh724 commented 9 years ago

Not sure why hubot reacted to this, any takers? http://i.imgur.com/ngQWnPK.png "test 1 2 3" reacted to some really random paragraph

pperez commented 9 years ago

I think it's because the stemmer is reducing some words in that paragraph. Using a stemmer allows the bot to respond to a family of words based on their root (e.g arguments would match arguments and argumenting as well).

Patricio Pérez Estudiante Ingeniería en Informática UTEM

pperez commented 9 years ago

Oh, and to fix this gh issue you can swap two regular expressions on the main script, just check out the forks of this repo :)

jarpy commented 9 years ago

Same issue here.

leon react "celeryd_errors_prod on metrics" Here's the logs: http://...

Reacting to "celeryd_errors_prod with on metrics" Here's the logs: http://...

worldspawn commented 8 years ago

kbot react "ayy lmao" Shutup Dale!!

output:

Reacting to "ayy with lmao" Shutup Dale!!

seems pretty broken