hubot-subreddit
Replies with a random post from a subreddit
Last updated 2 years ago by adamedgett .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-subreddit 
SYNC missed versions from official npm registry.

Hubot Subreddit

npm

Gets a random post from a subreddit

Installation

In your hubot repo, run: npm install --save hubot-subreddit

Then add it to your external-scripts.json file:

["hubot-subreddit"]

Example Usages

Aliased subreddit

user> hubot food me

hubot> http://i.imgur.com/abcdef.jpg

Any subreddit

user> hubot sub me movies

hubot> http://...

Alias Configuration

Using config file subreddit_aliases.json

{
  "prog": "programming",
  "food": "food"
}

Using environment variable

export HUBOT_SUBREDDIT_ALIASES="prog:programming,food:food"

Current Tags

  • 2.1.2                                ...           latest (2 years ago)

9 Versions

  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           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 |