A rudimentary node.js app to stream reddit comments in the cli.
-
Clone repository
-
Create a
.env
file in the app project directory:CLIENT_ID=<client_id_here> CLIENT_SECRET=<client_secret_here> REDDIT_USER=<username_here> REDDIT_PASS=<password_here>
-
run
npm install
-
run
node app <args>
to start app
Argument | Description |
---|---|
--url <reddit_post_url> |
watches a post for new comments and emits to console when detected. |
--sub <reddit_subreddit_name> |
watches sub for new comments on any post and emits to console when detected. |
If no args are passed, app will /r/all for new comments.