dbot/modules/reddit
2013-06-01 15:55:09 +00:00
..
config.json link dependency for status 2013-05-25 21:06:32 +00:00
README.md ] 2013-05-13 18:21:50 +00:00
reddit.js add color to up/downvotes; move NSFW to strings 2013-04-14 01:35:04 +00:00
strings.json Closed a quotation mark that I missed >.> 2013-05-29 12:23:19 +02:00

Reddit

Various Reddit functionality

Description

This module provides Reddit related functionality, which is currently limited to reading various links, but will be expanded in future to include stuff like monitoring posts and creating its own.

API

getSubredditInfo(name, callback)

Get information about a subreddit from the Reddit API. Callback takes one argument, the data returned from the API.

getPostInfo(name, callback)

Get information about a post from the Reddit API. Callback takes one argument, the data returned from the API about the post.

getCommentInfo(post, name, callback)

Get information about a particular comment in a particular post. Callback takes one argument, information about the given comment.

Hooks

Posts a summary when either a subreddit, a post or a comment is linked in a channel.