gitter-logger
v0.0.4
Published
Logger for gitter
Downloads
1
Readme
logger
Setup
Firstly you will need a gitter API access token available from: https://developer.gitter.im/apps
export TOKEN=<token>
Secondly you will need some storage space e.g available from : https://linkeddata.github.io/signup/?tab=signup
export DOMAIN=<domain> (e.g. foo.databox.me)
You will need the gitter room ID (use inspect element .data-id)
export ROOM_ID=<room_id>
Export environement vaiables before running
Optional debugging
export DEBUG=gitter
Optional certificate for access control
export CERT=<path>
Running
nodejs history.js [roomId] [lastMessage]
run once to set up the history, lastMessage will only save messages up to that Id
nodejs gitter.js [roomId]
run logger in realtime, if ROOM_ID was not set it can be supplied as an argument