This repository contains the Midjourney Automation Bot, a free and open-source tool designed to streamline the process of image generation using the OpenAI GPT-3 model. The bot automates interactions with Discord channels to create images based on user-defined prompts, facilitating the creation of various art forms such as illustrations, digital paintings, or sketches. It features a user-friendly web interface, robust logging, and customizable upscale options, making it an accessible tool for artists, developers, and anyone interested in automated image generation. The bot's functionality is well-documented, and it is made available under the MIT License, allowing for broad use and modification.
As seen on LinkedIn and YouTube.
For any queries or freelance opportunities, please get in touch with me via LinkedIn or email at harmindernijjar1996@gmail.com
- The bot logs into Discord using user credentials provided in a secure configuration file.
- The bot opens the specified channel on Discord.
- The bot sends a command to generate an image based on the user's prompt.
- The bot waits for the upscale options to appear and selects them.
- The bot downloads the upscaled images.
The prompt can include descriptors and a topic to guide the image generation process. The bot uses the OpenAI GPT-3 model to generate the image based on the prompt. The generated images are then downloaded and saved.
- Logging: The bot logs its actions and any errors during the image generation process.
- API Key Management: The bot allows users to set the OpenAI API key through different methods, such as a file, environment variable, or console input.
- Customizable Upscale Options: The bot selects, and downloads upscaled images based on user-defined upscale options.
- Web Interface: The bot provides a user-friendly web interface powered by Eel, allowing users to interact with and control the bot easily.
To get started with the Midjourney Automation Bot, follow these steps:
- Clone the repository:
git clone https://github.com/passivebot/midjourney-automation-bot.git
- Install the required dependencies:
pip install -r requirements.txt
- Run the bot:
python midjourney_automation_script.py
- Customize the bot's behavior by modifying the values in the GUI, such as the bot command, channel URL, prompt, etc.
- Click "Start Automation" to start generating images.
Once the bot runs, it will automatically log into Discord, open the specified channel, and send the bot command with the given prompt. The bot will then wait for the upscale options, select them, and download the upscaled images.
You can interact with the bot through the web interface, which you can access by opening index.html
in your preferred web browser. The web interface allows you to start the bot, configure the bot parameters, and monitor the bot's progress and log messages.
The bot is designed with customization in mind. Users can modify various parameters and settings according to their needs. You can set the OpenAI API key, choose the upscale options, decide the Discord channel, and much more. To make these customizations, simply adjust the values in the GUI before starting the bot.
The Midjourney Automation Bot is licensed under the MIT License.
Developed by Harminder Singh Nijjar