hubot-subreddit

2.1.2 • Public • Published

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"

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i hubot-subreddit

    Weekly Downloads

    10

    Version

    2.1.2

    License

    MIT

    Unpacked Size

    3.95 kB

    Total Files

    5

    Last publish

    Collaborators

    • adamedgett