slacker icon indicating copy to clipboard operation
slacker copied to clipboard

Reddit Support

Open steven-tey opened this issue 3 years ago • 5 comments

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! :)

steven-tey avatar Aug 02 '22 21:08 steven-tey

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));

amosbastian avatar Aug 08 '22 21:08 amosbastian

@steven-tey Is there someone already on this issue or can I go ahead & take this one up?

jatinsandilya avatar Aug 19 '22 15:08 jatinsandilya

@amosbastian Ooooh interesting, thanks for sharing that!

And @jatinsandilya no one yet so feel free to take it up! :)

steven-tey avatar Aug 20 '22 02:08 steven-tey

@jatinsandilya are you working on it?

amosbastian avatar Sep 19 '22 22:09 amosbastian

@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.

jatinsandilya avatar Sep 20 '22 05:09 jatinsandilya