Application that collects free games published on Reddit and sends them to Discord.
The application runs periodically and is divided into three steps:
- Authenticates with the Reddit API and fetches posts from the subreddit FreeGameFindings.
- Processes the returned posts and creates the Discord embeds.
- Sends the embeds using the Discord webhook.
- Node.js >= v16 and TypeScript installed.
- A Reddit application to obtain a client ID and a client secret for API usage: Instructions.
- A Discord webhook: Instructions.
- Install the dependencies:
npm ci
- Rename
.env.template
to.env
and put your credentials:- DISCORD_WEBHOOK=Discord webhook URL
- REDDIT_CLIENT_ID=Reddit client ID
- REDDIT_CLIENT_SECRET=Reddit client secret
- REDDIT_USER_AGENT=Application identifier. Follow the Reddit rules.
- Start the application:
npm run start
This is a repository for personal use, all content collected from Reddit is public and accessed by any user, i just automated this process.