yadt-hubot

0.1.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i yadt-hubot

Weekly Downloads

1

Version

0.1.7

License

BSD

Last publish

Collaborators

  • murdochjohn