Train hubot to react to certain terms. Multiple responses to the same term are allowed. One will be selected at-random.
Bob: hubot react homestar seriously.
Hubot: reacting to homestar with seriously.
...
Alice: Homestar Runner is the best.
Hubot: seriously.
It currently uses natural's PorterStemmer
to match words regardless of conjugation, tense, etc. This is almost certainly going to change as I experiment with it more.
Remember at most N
messages (default 200).
HUBOT_REACT_STORE_SIZE=N
Throttle responses to the same terms for N
seconds (default 300).
HUBOT_REACT_THROTTLE_EXPIRATION=N
Wait for N milliseconds for hubot to initialize and load brain data from redis. (default 10000)
HUBOT_REACT_INIT_TIMEOUT=N
Tell hubot to react with <response>
when it hears <term>
.
hubot react <term> <response>
Tell hubot to react with <response>
when it hears <term>
.
hubot react "<term>" <response>
Tell hubot to forget the last <term>
<response>
pair that was uttered.
hubot ignore that