Skip to content

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

License

Notifications You must be signed in to change notification settings

ArturMiguel/r-FreeGameFindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks