Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

yadt-hubot

JoergFiedler20BSD0.1.7

Connects to a yadt broadcaster and sends notification to an IRC channel in case something interesting happens.

hubot, hubot-script, yadt

readme

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'.