This is a version of the Python 3 script used on the PresentForYou account. This script is not robust or well-tested.
This script uses the Python libkol library. You cannot use the account with KoLmafia or in your browser while it is being used with this script.
First, you will need to install libkol. Assuming you have Git and Python 3 installed (you'll already have Python 3 in most Linux distros), run these commands in the terminal or command prompt.
git clone --branch 0.5.40 https://github.com/python-kol/libkol.git
pip3 install libkol
Once that's done, you can prepare the script. Open the script in a text editor and look at these lines at the top:
GIFTER_ACCOUNT_USERNAME = "ENTER YOUR USERNAME HERE"
GIFTER_ACCOUNT_PASSWORD = "ENTER YOUR PASSWORD HERE"
ID_OF_ITEM_TO_SEND = 2306
Replace the USERNAME and PASSWORD fields with your account's username and password, making sure not to remove the quotation marks on each side. If your password has a " in it, you must preface the " with a \, so it becomes \".
You should also replace the ID_OF_ITEM_TO_SEND with the ID of the item you want to send. Ideally the script should have a large amount of this item, since there is no automatic refilling/switching function in this script because it is quite basic. You can find the ID of an item on its page in the upper-right box in its page on the KoL wiki.
Before running the script, you should make sure it has at least one item in its inventory besides the item you want to send, and that the account has access to chat (of course). You should probably also baleet your main account on this account.
To run the script, simply run python3 PresentForYouPublic.py, provided you are in the terminal and in the folder that the script is in. In Windows, you can probably just double-click the script to run it. Make sure not to close the script window until you want to quit, though.
If you're using Linux, you can run python3 PresentForYouPublic.py | nohup & and the script will continue even when the terminal is closed.