hubot-emergencykitten
A hubot script for when you need a kitten
Last updated 4 years ago by backisbachus .
LGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-emergencykitten 
SYNC missed versions from official npm registry.

Hubot: hubot-emergencykitten

Sometimes you need an emergency kitten. All images come from http://www.emergencykitten.com/ (GitHub)and are either under a Creative Commons license or were marked as shareable by their creators.

See src/emergencykitten.coffee for full documentation.

Installation

Run npm install hubot-emergencykitten --save

Add hubot-emergencykitten to your external-scripts.json:

["hubot-emergencykitten"]

Sample Interaction

This script works best with Chat apps that support image preview (Slack, RocketChat, Mattermost, ...)

user1> hubot kitten
Hubot> https://farm8.staticflickr.com/7078/7352069826_1e667da00b_b.jpg

Update the kitten list

The list of kittens is located in data/kittens.coffee for easier access. If other kittens are added to EmergencyKitten and you want them you can update the kitten list by running getKittens.js in the console with NodeJS (the file should be located in the node_modules/hubot-emergencykitten/ folder of your hubot installation folder):

nodejs getKittens.js

The script is far from being what you could call "proper JavaScript", but it works and is far from enough considering you won't be running it that often.

Current Tags

  • 1.2.1                                ...           latest (4 years ago)

6 Versions

  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 6
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |