hubot-eavesdrop
A hubot script to perform actions when user-specified keywords are mentioned.
Last updated 2 years ago by contolini .
CC0-1.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-eavesdrop 
SYNC missed versions from official npm registry.

hubot-eavesdrop Build Status npm

A hubot script to have your bot respond to specified keywords.

See src/eavesdrop.coffee for full documentation.

hubot-eavesdrop screenshot

Installation

In hubot project repo, run:

npm install hubot-eavesdrop --save

Then add hubot-eavesdrop to your external-scripts.json:

["hubot-eavesdrop"]

Sample Interaction

user1>> hubot when you hear slow clap respond with http://i.imgur.com/0mKXcg1.gif
user1>> slow clap
hubot>> http://i.imgur.com/0mKXcg1.gif

user1>> hubot stop listening for slow clap
hubot>> Okay, I will ignore slow clap.

Also supports regular expressions.

user1>> hubot when you hear slow\s?clap(ping)? respond with http://i.imgur.com/0mKXcg1.gif
user1>> slow clapping
hubot>> http://i.imgur.com/0mKXcg1.gif
user1>> slowclap
hubot>> http://i.imgur.com/0mKXcg1.gif

Multiple responses can be specified for a single keyword.

user1>> hubot when you hear slow clap respond with 1|congrats!; 2|http://i.imgur.com/0mKXcg1.gif
user1>> slow clap
hubot>> congrats!
hubot>> http://i.imgur.com/0mKXcg1.gif

To reduce channel noise, keywords only trigger events once every thirty seconds. The length of this delay can be changed by setting a HUBOT_EAVESDROP_DELAY environment variable.


Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

Current Tags

  • 2.3.0                                ...           latest (2 years ago)

22 Versions

  • 2.3.0                                ...           2 years ago
  • 2.2.1                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 2.1.3                                ...           3 years ago
  • 2.1.2                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.6.0                                ...           4 years ago
  • 1.5.3                                ...           4 years ago
  • 1.5.2                                ...           4 years ago
  • 1.5.1                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (9)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |