Gets a random post from a subreddit
In your hubot repo, run:
npm install --save hubot-subreddit
Then add it to your external-scripts.json
file:
["hubot-subreddit"]
user> hubot food me
hubot> http://i.imgur.com/abcdef.jpg
user> hubot sub me movies
hubot> http://...
{
"prog": "programming",
"food": "food"
}
export HUBOT_SUBREDDIT_ALIASES="prog:programming,food:food"