JRAW icon indicating copy to clipboard operation
JRAW copied to clipboard

Sorting posts by new?

Open tmello01 opened this issue 5 years ago • 2 comments

I'm trying to make a bot for a particular subreddit, and for this purpose I need to be able to grab new posts. As it stands, it seems like client.subreddit().posts().build() only grabs the posts currently on that front-page. Is there a way to grab all new posts to the subreddit, and maybe fire an event when a new post is made?

tmello01 avatar Mar 06 '19 20:03 tmello01

        accountHelper.reddit
            .subreddit("pics")
            .posts()
            .sorting(SubredditSort.NEW)
            .limit(20)
            .build()

amrro avatar Mar 13 '19 01:03 amrro

Is there any way to fire events for something like this? Or add a listener that responds to new posts?

tmello01 avatar Mar 18 '19 16:03 tmello01