Script to draw an image onto r/place
About
Script to draw an image onto r/place (https://www.reddit.com/r/place/)
Requirements
Python 3 (https://www.python.org/downloads/)
How to Get App Client ID and App Secret Key
You need to generate an app client id and app secret key in order to use this script.
Steps:
- Visit https://www.reddit.com/prefs/apps
- Click “create (another) app” button at very bottom
- Select the “script” option and fill in the fields with anything
Python Package Requirements
Install requirements from ‘requirements.txt’ file.
pip3 install -r requirements.txt
Get Started
Create a file called ‘.env’
Put in the following content:
ENV_PLACE_USERNAME='["developer_username"]'
ENV_PLACE_PASSWORD='["developer_password"]'
ENV_PLACE_APP_CLIENT_ID='["app_client_id"]'
ENV_PLACE_SECRET_KEY='["app_secret_key"]'
ENV_DRAW_X_START="x_position_start_integer"
ENV_DRAW_Y_START="y_position_start_integer"
ENV_R_START='["0"]'
ENV_C_START='["0"]'
- ENV_PLACE_USERNAME is