jasonbio / reddit-shell

web based linux shell emulator that allows you to browse reddit via command line
https://redditshell.com/
GNU General Public License v3.0
432 stars 38 forks source link

stream #4

Closed kaue closed 8 years ago

kaue commented 8 years ago

Its possible to include a stream option for new posts? =)

jasonbio commented 8 years ago

image

Anything is possible :D! A "watch" command could easily be implemented, what sort of interval between checks were you thinking? I wonder how reddit decides their rate-limit too, although I don't think reddit shell is close to hitting it. Still something to consider.

kaue commented 8 years ago

@jasonbio hahaha awesome!

I think checking every x seconds would be perfect.

jasonbio commented 8 years ago

Sorry, just getting around to this now. New command added "watch [subreddit]". It will poll the specified subreddit every 15 seconds for new posts and echo them as they come in. Typing any other command will stop the watch process.

Commit: b4c44db2d318c210d14f63b60b548af5a4a732a5