hubot-responders

0.1.0 • Public • Published

hubot-responders

Define new responders on the fly.

See src/responders.coffee for full documentation.

Notes: It's possible to crash Hubot with this script. Comparing pathological strings against evil regular expressions will crash Hubot. Callbacks with infinite loops will crash Hubot. So, you know, don't do that. For example, this is bad: "Hubot: respond /(a+)+/ while(1);".

Installation

In hubot project repo, run:

npm install hubot-responders --save

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

[
  "hubot-responders"
]

Sample Interaction

hubot responders - List all responders
hubot responder /pattern/ - Show a responder
hubot forget /pattern/ - Remove a responder
hubot respond /pattern/ msg.send(...) - Create a new responder

Package Sidebar

Install

npm i hubot-responders

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • sparksterz