Discord Midjourney Bot
Overview
This application is a custom Discord bot designed to automate interactions with the Midjourney AI platform. It utilizes Selenium for web automation, allowing users to send prompts to Midjourney through Discord efficiently. The bot features a user-friendly GUI built with CustomTkinter, making it accessible for users of varying technical backgrounds.
Technologies Used
- Python : The core programming language used for the script.
- CustomTkinter : A modern-looking UI library for Tkinter.
- Selenium : Used for web browser automation.
- Pandas : For handling CSV data.
- Threading : For concurrent execution of bot operations.
- Pickle : For saving and loading checkpoints.
Features
- User-friendly GUI for easy interaction
- Automated login to Discord
- Batch processing of prompts from a CSV file
- Human-like browsing simulation to avoid detection
- Customizable timing settings for actions
- Progress tracking with a visual progress bar
- Checkpoint system for resuming interrupted sessions
- Detailed logging of bot actions
How to Run
To run the Discord Bot for Midjourney AI, follow these simple steps:
Clone or Download the Repository:
- Clone the repository using Git:
- Or download the repository as a ZIP file and extract it.
Navigate to the Executable:
- Go to the
dist
directory in the project folder. - You will find an
.exe
file (e.g.,DiscordBot.exe
).
Run the Application:
- Double-click the
.exe
file to launch the bot. - The GUI will open, allowing you to configure and start the bot.
Enjoy Using the Bot:
- Follow the on-screen instructions to set up your Discord credentials, channel link, and CSV file with prompts.
- Click the "Start Bot" button to begin the automation process.
Development and Challenges
During the development of this bot, several challenges were encountered:
- Selenium Automation Detection: Implementing measures to avoid detection by Discord's anti-bot systems was crucial.
- Optimizing Prompt Batching: Finding the right balance for sending prompts in batches without triggering rate limits or suspicion was a key challenge. This required extensive testing and fine-tuning of timing parameters:
- Implementing Robust Error Handling: Ensuring the bot could gracefully handle various error scenarios and resume operations was critical for long-running sessions.
Usage
When using the bot, consider the following:
- Time Constraints: The bot's performance is heavily dependent on your internet connection speed. Adjust timing settings accordingly.
- Error Handling: If the bot encounters an error mid-operation, it will automatically attempt to resume from the last checkpoint. You can manually delete checkpoints if necessary
Release Notes
Version 1.0
- Initial release with core functionalities
- GUI for easy user interaction
- CSV input for batch processing
- Basic error handling and checkpointing
Future updates planned to introduce additional features and optimizations.
This Discord bot for Midjourney AI represents a powerful tool for automating interactions with AI image generation platforms. While it offers significant time-saving capabilities, users should be mindful of Discord's terms of service and use the bot responsibly. Future versions will aim to enhance functionality and user experience based on community feedback.