Source code for the OMORI Upscale Bot implemented in Python using the Tweepy module.
- The Twitter API will no longer support free basic access source
- Using the bot via the Twitter API will no longer free and it saddens me since this project is based around the Twitter API
- It saddens me but I'll move on to other projects.
- Install dependencies with
pip install -r requirements.txt
- Make a Twitter developer account. Put your account keys in
./text-files/keys.txt
, then deploy using a method of your choice :)
- Make sure that the tokens for the account have write access
- The filenames script can be used to automate making a medialist.txt file needed for the bot to upload images.
- When running
main.py
make sure to include the argument-deploy
to specify which deployment method you want.-deploy cronjob
if you want to use a cronjob-deploy loop
if you want to use an infinte loop
- Tweet with media
- Like mentions
- Reply to mentions
-
- Use a AWS server to host the bot and run the main.py every hour. One such way is to use a cronjob that runs at the start of every hour.
runbot
script can help with this
-
- Another method is to comment out the first Bot and use an infinite loop that uses the time.sleep() function to wait every hour.
- Check out the bot here!
python main.py -deploy cronjob
- if you want to run the py file as a script you can also do
./main.py -deploy cronjob
- Make sure you have executable privileges for
main.py
if you want to run it as above. If not the first way works just fine!
- Make sure you have executable privileges for
This isn't what I use to upscale the images. This is how I manage the bot. I followed this guide to get started and through trial and error I developed my own system for upscales built off of this.