Auto Midjourney

Description

This is a simple script to automate the process of midjourney. This using the bot to read the prompts and downloads all images all in once.

Setup

  1. Create a virtual environment with conda
conda create -n midjourney_test python=3.11
  1. Activate the virtual environment
conda activate midjourney_test
  1. Install the requirements
pip install -r requirements.txt
  1. Create a .env file with the following variables
BOT_TOKEN=your_bot_token
DISCORD_TOKEN=your_discord_token
CHANNEL_ID=your_channel_id
SERVER_ID=your_server_id
USER_ID=your_user_id
  1. Create an images foler in the root directory

Usage

  1. Modify the prompts.txt file with your own prompts(each line is separate prompt)
  2. Run the script
python bot.py
  1. In the chat room, type start to start auto midjourney:D