4.1.3 • Published 7 years ago

hubot-react v4.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

hubot-react

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.

Matching

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.

Configuration

Store size

Remember at most N messages (default 200).

HUBOT_REACT_STORE_SIZE=N

Throttle expiration

Throttle responses to the same terms for N seconds (default 300).

HUBOT_REACT_THROTTLE_EXPIRATION=N

Initialization timeout

Wait for N milliseconds for hubot to initialize and load brain data from redis. (default 10000)

HUBOT_REACT_INIT_TIMEOUT=N

Commands

React (single-word term)

Tell hubot to react with <response> when it hears <term>.

hubot react <term> <response>

React (multi-word term)

Tell hubot to react with <response> when it hears <term>.

hubot react "<term>" <response>

Ignore

Tell hubot to forget the last <term> <response> pair that was uttered.

hubot ignore that
4.1.3

7 years ago

4.1.2

7 years ago

4.1.1

9 years ago

4.1.0

9 years ago

4.0.0

9 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago