hubot-alert

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i hubot-alert

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • johngeorgewright