3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 05:02:36 +01:00
dbot/modules/reddit
2015-03-28 12:55:06 +00:00
..
config.json something something reddit feeds 2013-12-19 18:48:49 +00:00
README.md ] 2013-05-13 18:21:50 +00:00
reddit.js get a random post from a given subreddit 2015-03-28 12:55:06 +00:00
strings.json new post with less info 2014-07-22 11:28:54 +00:00
usage.json use the whatsit oh shit 1% battery sjiaofjdisaojfodsa 2013-12-19 18:53:35 +00: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.