Hubot: hubot-substitute
A regex find/replace watcher for Hubots
See src/substitute.coffee
for full documentation.
Installation
Add hubot-substitute to your package.json
file:
"dependencies":
Add hubot-substitute to your external-scripts.json
:
Run npm install hubot-substitute
Sample Interaction
aaron> I could really go for a beer right now
aaron> s/beer/stout beer/
Hubot> aaron: I could really go for a stout beer right now
aaron> I can't wait until we get their
aaron> s/their/there
Hubot> aaron: I can't wait until we get there
aaron> The cow goes woof woof
aaron> s/woo/moo/g
Hubot> aaron: The cow goes moof moof
aaron> The cow goes woof woof
guster> aaron s/woof/moo/g
Hubot> aaron: The cow goes moo moo