slacker
slacker copied to clipboard
Reddit Support
I've gotten a bunch of requests for Reddit support and I'm brainstorming how this would work.
I'm thinking of using something that streams comments from Reddit, something like https://github.com/rockets/demo but an NPM module.
Thoughts?
PRs welcome too! :)
There is https://github.com/MayorMonty/Snoostorm for streaming submissions / comments from Reddit if that's useful?
const client = new Snoowrap({
...
});
const comments = new CommentStream(client, {
subreddit: "reactjs+nextjs",
limit: 25,
pollTime: 2000,
});
comments.on("item", (comment) => handleComment(comment));
@steven-tey Is there someone already on this issue or can I go ahead & take this one up?
@amosbastian Ooooh interesting, thanks for sharing that!
And @jatinsandilya no one yet so feel free to take it up! :)
@jatinsandilya are you working on it?
@amosbastian The API's worked differently so I made a separate repo for it here: https://github.com/jatinsandilya/reddit-slack-bot but if you'd like to merge it here as a PR feel free to fork and use the code.