Skip to content

aspiring-aster/OMORI-Upscale-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMORI-Upscale-Bot Source Code

Source code for the OMORI Upscale Bot implemented in Python using the Tweepy module.

Read this on the Twitter API

  • 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.

Use

  • 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

Functions

  • Tweet with media
  • Like mentions
  • Reply to mentions

Deployment methods:

    1. 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
    1. Another method is to comment out the first Bot and use an infinite loop that uses the time.sleep() function to wait every hour.

Example

  • 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!

READ THIS IF YOU WANT TO UPSCALE YOURSELF

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.

About

Source code for the OMORI Upscale Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages