Query subreddits for new posts and publish them to a Discord Webhook.
Used for the Chunky Renderer's community Discord Server
- Requires NodeJS and Yarn
- Install dependencies with
yarn install
- Add a subreddit to follow by running
yarn addHook [r/subreddit] [webhook_link]
- Run script with
yarn start
The script will query the subreddit for new posts every 5 minutes and post an embed to the Webhook URL.
The addHook
script can be run multiple times for multiple subreddits or multiple webhooks. Subreddits cannot be removed currently without deleting the database file and redoing the setup for the remaining subreddits, but it is planned to be able to remove them individually eventually.
Hooks added with the addHook
script are saved between runs, so after initial setup, there is no need to re-run the addHook
script. Only yarn start
needs to be run to start the program after the first run.