hubot-substitute
Regex substitute script for hubot
Last updated 6 years ago by astaves .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-substitute 
SYNC missed versions from official npm registry.

Hubot: hubot-substitute

Build Status

A regex find/replace watcher for Hubots

See src/substitute.coffee for full documentation.

Installation

Add hubot-substitute to your package.json file:

"dependencies": {
  "hubot": ">= 2.5.1",
  "hubot-scripts": ">= 2.4.2",
  "hubot-substitute": ">= 0.0.0",
  "hubot-hipchat": "~2.5.1-5",
}

Add hubot-substitute to your external-scripts.json:

["hubot-substitute"]

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

Current Tags

  • 0.2.0                                ...           latest (6 years ago)

7 Versions

  • 0.2.0                                ...           6 years ago
  • 0.1.5                                ...           6 years ago
  • 0.1.4                                ...           6 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |