0.1.7 • Published 10 years ago

yadt-hubot v0.1.7

Weekly downloads
2
License
BSD
Repository
github
Last release
10 years ago

Hubot: yadt-hubot-script

Build Status

Subscribes itself one or more topics provided by a YaDT broadcaster and publishes those notifications. So far only cmd notification are supported.

See src/hubot-yadt-script.coffee for further documentation.

Installation

Add yadt-hubot-script to your package.json file:

"dependencies": {
  "hubot": ">= 2.5.1",
  "yadt-hubot-script": ">= 0.0.1",
}

Add yadt-hubot-script to your external-scripts.json:

["yadt-hubot-script"]

Run npm install

Configuration

Create a config file (coffeescript) somewhere a set the environment variable HUBOT_YADT_CONFIG to that file.

export HUBOT_YADT_CONFIG=/path/to/file

Sample config file.

exports.broadcasterUrl = 'ws://host:port'
exports.channelConfig = [
  {
    regex: /^dev.*/i
    rooms: ["#dev-channel", "#ops-channel"] },
  {
    regex: /evil.*/i },
  {
    regex: /.*/
    rooms: ["#devops-channel"] }
]
exports.topics = ['dev-machines']

Sample Interaction

hubot>> Yadt action 'update' for target 'marvin.bot.net' has been 'started'.
hubot>> Yadt action 'update' for target 'marvin.bot.net' has been 'finished'.
0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago