Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.68 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.68 KB

r/FreeGameFindings

Application that collects free games published on Reddit and sends them to Discord.

image not found

How does it work

The application runs periodically and is divided into three steps:

  1. Authenticates with the Reddit API and fetches posts from the subreddit FreeGameFindings.
  2. Processes the returned posts and creates the Discord embeds.
  3. Sends the embeds using the Discord webhook.

How to install and run:

Pre-requisites

  • 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 and run

  • 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

Disclaimer

This is a repository for personal use, all content collected from Reddit is public and accessed by any user, i just automated this process.

License

MIT