To run this painter bot, you must have python and pip installed. If you don't have it or it's not working properly, check the python help at the bottom - thanks Ryhida.
-
Make sure Python3 and pip are installed
python --version
should output python 3.xpip --version
should output whatever, just not an errorIf you're having trouble with this, check this or related fixes
-
Download the bot folder and open a terminal inside it.
-
Install the requirements:
pip install -r requirements.txt
-
Setup the config.json file with your reddit credentials.
{ "username": "YOUR-USERNAME", "password": "YOUR-PASSWORD" }
-
Run the bot in permanent maintenance mode
python monitor.py maintenance
OBS: If you want to run multiple accounts, you can still run the old command:
python monitor.py --username youruser --password yourpass maintenance
Don't worry, the bot respects the indicated cooldown between drawings.
The code is contained in a single file, so you can see that I won't send your credentials anywhere except Reddit's API. Also, there's no self-updating component except it tries to update the target.png
at every run.
The template file can be updated, the script will automatically pick it up.
The template file must respect the correct RGB values accepted by the canvas. The "invisible green" that marks ignored areas is different from the actual green.
If you want more details about the execution, you can pass an extra --debug
option.
If you are having trouble running Python3 or adding it to your path these instructions may help.
-
Make folder
C:\python\
-
Download Python 3
-
Click on Installer
-
Chose custom install and choose path
C:\python\
-
Open CMD window
-
Type:
C:\python\python.exe --version
It should output python 3.x -
Download and double click pip.py to install it
-
Type
C:\python\python.exe -m pip --version
should output whatever, just not an error -
C:\python\python.exe -m pip install -r requirements.txt
This will download all the items needed to run this code -
Finally run the program by typing
C:\python\python.exe \location\monitor.py --username youruser --password yourpass maintenance
WHITESPACE IS NICE!