hubot-responders
v0.1.0
Published
port of tfausak's responders hubot script to a node package
Downloads
3
Maintainers
Readme
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