Skip to content

Instantly share code, notes, and snippets.

@sydrawat01
Created May 5, 2022 18:02
Show Gist options
  • Select an option

  • Save sydrawat01/59e828343da12f007baaabe35d1c721c to your computer and use it in GitHub Desktop.

Select an option

Save sydrawat01/59e828343da12f007baaabe35d1c721c to your computer and use it in GitHub Desktop.
Format for the PRAW module in Python for the reddit bots.
[DEFAULT]
# A boolean to indicate whether or not to check for package updates.
; check_for_updates=True
# Object to kind mappings
; comment_kind=t1
; message_kind=t4
; redditor_kind=t2
submission_kind=t3
subreddit_kind=t5
; trophy_kind=t6
# The URL prefix for OAuth-related requests.
oauth_url=https://oauth.reddit.com
# The URL prefix for regular requests.
reddit_url=https://www.reddit.com
# The URL prefix for short URLs.
short_url=https://redd.it
[xyzzy]; botname
client_id=<.....>
client_secret=<.....>
password=<.....>
username=<.....>
user_agent=<.....>; bot version, like randombot 0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment