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.
- Create a virtual environment with conda
conda create -n midjourney_test python=3.11
- Activate the virtual environment
conda activate midjourney_test
- Install the requirements
pip install -r requirements.txt
- 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
- Create an
images
foler in the root directory
- Modify the
prompts.txt
file with your own prompts(each line is separate prompt) - Run the script
python bot.py
- In the chat room, type
start
to start auto midjourney:D