3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 00:22:35 +01:00
dbot/modules/reddit
2014-01-25 14:35:53 +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 let the debugging begin 2014-01-25 14:35:53 +00:00
strings.json something something reddit feeds 2013-12-19 18:48:49 +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.