Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.61 KB

README.md

File metadata and controls

42 lines (22 loc) · 1.61 KB

@Ryouhourly Twitter Bot

This is a Python script that posts a random image of Yamada Ryou from Gelbooru to Twitter every hour.

Prerequisites

Before running the script, you will need to install some packages, please use pip i beg you:

pip install -r requirements.txt

Setup

To use the script, you will need to set up a .env file containing your API keys and tokens for Gelbooru and Twitter. You can use the .env.sample file as a template for your own .env file.

Configuration File

Docs are in the config.ini

To change tags open config.ini and change tags

To exclude tags open config.ini and change exclude_tags

Running

To run the script, simply run: python memefolderbot.py

By default, the script posts a random image from Gelbooru to your Twitter account at regular intervals. You can adjust the interval by changing the value of time2post in config.ini

License

This script is licensed under the MIT License.

Credits

Codeium: An AI-powered coding toolkit that includes Autocomplete and Search features that helped me overcome the challenges that were making me feel overwhelmed and suicidal while coding.

requests: A Python library for making HTTP requests. This library was used to download images from the internet.

Tweepy: A Python library for the Twitter API that made it easier to interact with Twitter's API.

pygelbooru: A Python wrapper for the Gelbooru API that made it easy to fetch random images from Gelbooru.