JRAW
JRAW copied to clipboard
Sorting posts by new?
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?
accountHelper.reddit
.subreddit("pics")
.posts()
.sorting(SubredditSort.NEW)
.limit(20)
.build()
Is there any way to fire events for something like this? Or add a listener that responds to new posts?