First off, I'd like to thank you for considering to contribute to GuessTheSubreddit.
Below is some information on running and setting up your environment. If you'd like to further discuss development of the bot, then the Discord guild may be the best place.
- Copy the
.env.examplefile and rename it to.env- The
REDDIT_CLIENT_IDandREDDIT_CLIENT_SECRETare found in your Reddit Developer Applications after creating one. - You can generate a
REDDIT_REFRESH_TOKENusing this Python script. - (optional) The
DISCORD_SUBMISSIONS_WEBHOOKis the URL of a webhook in a Discord channel.- A notification will be sent for new posts here.
- (optional) The
SENTRY_URLis your Sentry project's ingest URL.
- The
- Copy the
settings.yml.examplefile and rename it tosettings.yml- Change the
subredditto your testing subreddit's name (without the r/). - Set the flair ids to the ones on your testing subreddit.
- Change the
- Copy the
subreddits.yml.examplefile and rename it tosubreddits.yml- Optionally, you can populate it with more subreddits.
- Create a text widget and order it as your fourth widget.
- Create flairs for the post types and put their ids in the
settings.ymlfile. - Create wiki pages named the following:
- "pidtoinfo"
- "pidtoexpiry"
- "ignoreposts"
After configuring your environment, you can install the bot's requirements by running:
pip install -r requirements.txt
and start the bot using:
python main.py