Skip to content

AdamEdgett/hubot-subreddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Replies with a random post from a subreddit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published