Skip to content

MidJourney Discord Automation Bot automates sending prompts to the MidJourney bot on Discord, upscaling images, and downloading results using Python and Selenium. Perfect for AI artists and content creators looking to streamline their workflow

License

Notifications You must be signed in to change notification settings

kadangkesel/get_midjourney

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 MidJourney Discord Automation Bot

github-getmidjourney

📖 Table of Contents

This Python script automates sending prompts to MidJourney's Discord bot and downloading the upscaled images using Selenium and cURL.

📌 Features

  • Automatically logs into Discord.
  • Sends prompts from a prompts.txt file.
  • Automatically clicks the upscale buttons (U1, U2, U3, U4) and downloads the upscaled images.

🛠 Prerequisites

📦 Requirements

Install Dependencies

Ensure you have Python installed, then install the required dependencies:

pip install -r requirements.txt

WebDriver Setup

Download and install the Chrome WebDriver compatible with your Chrome version:

⚙️ Configuration

  1. Set Chrome Profile Path:

    • Open Chrome and navigate to chrome://version/
    • Copy the "Profile Path" and replace it in the script:
    options.add_argument(r'--user-data-dir=C:\Users\Username\AppData\Local\Google\Chrome\User Data\Default')
  2. Modify Discord Channel URL:

    • Replace the Discord URL with your channel's link:
    driver.get("https://discord.com/channels/@me")

▶️ Usage

  1. Clone the repository:
    git clone https://github.com/kadangkesel/get_midjourney
  2. Navigate into the project directory:
    cd get_midjourney
  3. Install dependencies:
    pip install -r requirements.txt
  4. Create a prompts.txt file and add your prompts (one per line).
  5. Run the script:
    python bot.py
  6. The script will send prompts, wait for responses, upscale images, and save them to the downloads folder.

📝 Notes

  • Ensure MidJourney Bot is added to your Discord channel.
  • The script depends on the Discord UI structure; if it changes, XPaths may need updating.

📜 License

MIT License

Copyright (c) 2025 kadang_kesel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

MidJourney Discord Automation Bot automates sending prompts to the MidJourney bot on Discord, upscaling images, and downloading results using Python and Selenium. Perfect for AI artists and content creators looking to streamline their workflow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages