Skip to content
forked from uro98/gratis

A Discord bot that scrapes the /r/GameDeals subreddit for free deals

Notifications You must be signed in to change notification settings

Xpitfire/GameDeals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Deals

This is a Discord bot that scrapes the r/GameDeals subreddit for free deals. It sends new deals to channels called "free-games" at 6am and 6pm every day.

Built With

  • PRAW - Python Reddit API Wrapper
  • discord.py - Python Discord API Wrapper

Configure bot

Create a config.py with the following properties:

DISCORD_TOKEN="" # Discord API token
DISCORD_CHANNEL_ID="" # name of the channel to post in
REDDIT_CLIENT_ID="" # Reddit client id from the API app
REDDIT_CLIENT_SECRET="" # Reddit secret from the API app
REDDIT_USERNAME="" # Account username to login
REDDIT_PASSWORD="" # Account password to auth
REDDIT_USER_AGENT="Game Deals" # Any name to define the Reddit user agent

Register Discord Bot

Use the client API ID from the Discord app and enter this into the url https://discordapp.com/oauth2/authorize?client_id=XXXX&scope=bot&permissions=8

Replace XXXX with your ID.

Run Bot

python bot.py

This will connect the local running script with the Discord bot API and run the bot.

About

A Discord bot that scrapes the /r/GameDeals subreddit for free deals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%