cirpo / hubot-save-links

a hubot script to persist links from messages
4 stars 7 forks source link

Hubot-save-links Build Status

A hubot script that saves links and exposes an api to retrieve them. At the moment it supports local redis installations or redis togo service attached in Eroku

The links are available via GET /links (hubot has express inside :)

See src/save-links.js for the bot script documentation. See hubot scripting documentation for more info.

Installation

Install Hubot

In hubot project repo, run:

npm install hubot-save-links --save

Then add hubot-save-links to your external-scripts.json:

[
  "hubot-save-links"
]

Sample Interaction

The script saves links from messages, discarding duplicates If you want to try locally simply launch hubot

bin/hubot
hubot>> hubot  http://example.com
hubot>> hubot  hello, check this: http://anotherexample.com

The above links will be saved in redis

Debug

If you want a verbose logging on the console simply launch hubot with the env variable DEBUG

DEBUG=save-links bin/hubot

more verbose:

DEBUG=* bin/hubot

Test

grunt test

TODO

Check the open issues Feel free to open issues for suggestions. Oh, lets start writing test :P