Skip to content

Post all new Submissions from a Subreddit to a Discord Server by webhook

License

Notifications You must be signed in to change notification settings

ProgrammingBuddies/Reddit-Crosspost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to set up the Bot

Optain Reddit oAuth credentials

Add a Webhook on a server

  • In the Discord Client go to 'Server Settings'
  • Go to Section 'Webhook'
  • Create a new Webhook. Specify name and channel and copy the Link for the next step

Setup the environment

  • Create a .env file containing the key value pairs from the dotenv_template file.
  • Substitute with the values obtained from the previous steps.
  • Add the name of a subreddit.

For the following steps make sure the python version used is 3.7. Otherwise Pipenv will scream at you.

  • install pipenv python -m pip install.
  • create the shell pipenv shell this will also load the values of the created .env file.
  • run pipenv install --ignore-pipfile this will install the exact dependencies from the lockfile.

Now you can run the bot with python server.py

Optional Configuration

  • FETCH_SIZE controls how many posts are fetched per loop. 10 by default.
  • WAITING_TIME How many minutes the program sleeps in between loops.

About

Post all new Submissions from a Subreddit to a Discord Server by webhook

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages