hubot-stenog

0.5.0 • Public • Published

hubot-stenographer

Let Hubot write down all messages it hears on a Witness-compliant server.

Build Status

Installation

These instructions assume you've deployed Hubot to Heroku. Please make the appropriate adjustments for other hosting solutions.

$ npm install --save hubot-stenographer
$ hk set HUBOT_LOG_SERVER_HOST="witness.yourdomain.com"
$ hk set HUBOT_LOG_SERVER_PORT=443
$ hk set HUBOT_LOG_SERVER_TOKEN="supersecrettoavoidspam"
$ vim external-scripts.json # add "hubot-stenographer" to the array 

Twilio Warnings

If you're into that sort of thing, you can utilize Twilio to text you when the service you're logging to is down. Just add the following configuration options:

  • HUBOT_TWILIO_SID - your Twilio SID
  • HUBOT_TWILIO_AUTH_TOKEN - your Twilio auth token
  • HUBOT_TWILIO_WARN_FROM - your Twilio number (e.g. +15551234567)
  • HUBOT_TWILIO_WARN_TO - the phone number to send the message to (same formatting as above)

Once all four of those are set, restart your app and look for twilio: enabled in your logs.

Usage

Once the script is enabled for your bot, you're good to go!

Credit

Originally written by Jacob Ela (@wubr), then modified for IRC by Matt Aimonetti (@mattetti). Completely rewritten by Parker Moore (@parkr) to be a script purely for logging. Thanks to Matt & Jacob for the inspiration!

install

npm i hubot-stenog

Downloadsweekly downloads

0

version

0.5.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability