This repository contains an automated bot that generates AI images based on prompts and posts them to a platform daily at a scheduled time. The bot leverages two key components: image generation and posting functionality.
- Image Generation: Automatically generates images based on dynamically created prompts.
- Automated Posting: Posts the generated images to a platform on a scheduled basis (daily at 01:00).
- Scheduler: Uses a scheduler to ensure the bot runs and posts without manual intervention.
Ensure that you have the following installed:
- Python 3.x
To install the required packages, run:
pip install -r requirements.txt
- content_post.py: Contains the Post class, responsible for handling the image posting process.
- img_generation.py: Contains the Img_generation class, which generates the prompt and corresponding image.
- main.py: Main script that brings the functionality together, scheduling the image generation and posting.
At 01:00 every day:
- A prompt is generated.
- An image is created using the prompt.
- The image is posted to the platform (Instagram).
Run the script:
python main.py