hubot-alert
Excepts HTTP POSTs to alert specific rooms
Last updated 5 years ago by johngeorgewright .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-alert 
SYNC missed versions from official npm registry.

hubot-alert

Excepts HTTP POSTs to alert specific rooms

Installation

In hubot project repo, run:

npm install hubot-alert --save

Then add hubot-alert to your external-scripts.json:

["hubot-alert"]

Export HUBOT_ALERT_TOKEN:

export HUBOT_ALERT_TOKEN=mysecrettoken

Sample Interaction

POST /hubot/alert/mysecrettoken
level:    'error'  # Can be one of debug, verbose, info, warn or error
rooms:    'shell'  # CSV of rooms to alert
message:  'Some message to tell everyone'

The above request will alert the "shell" room with:

External message received from xxx.xxx.xxx.xxx
:rotating_light: Some message to tell everyone

Current Tags

  • 1.2.0                                ...           latest (5 years ago)

4 Versions

  • 1.2.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |