A collection of reddit bots for www.reddit.com/r/rocketbeans
Instructions are for a linux based OS with git, node and npm installed, tested under Debian Strech and Ubunutu 18.04
- Clone Repo:
git clone https://github.com/leepeuker/rbtv-reddit
- Install dependencies:
cd rbtv-reddit && npm install
- Configure app in 'config/default.json'
- Run app in the foreground with
node app.js
or as a background process withnpm start
- Logs generated by node (eg if app crashes) can be found in 'logs/app.log', logs generated by the app can be found in 'logs/main.log'
- You can rename a configured reddit account (change 'account_1' to whatever you want, don't forget to replace the 'redditAccount' name in the bots section, too)
- You can configure multiple reddit accounts
- To use a reddit account you need a clientId and the clientSecret beside the username and password. You need to register the app to get these. Go to https://old.reddit.com/prefs/apps/ and select "Create another app...", give it a name, choose the "script" option and provide an 'redirect uri'
- You can change the subreddit a bot posts to for testing (change "subreddit" to whatever subreddit you want)
- The schedule statement follows the standard crontab syntax
- Better Error Handling
- Tests