Skip to content

johanneslo1/midjourney-automatic-image-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic image generation with Midjourney and GPT-3.5-Turbo

GitHub stars GitHub forks GitHub issues GitHub license

This is a Node.js application for automatically generating images using Midjourney. This repository is for educational purposes only.

Disclaimer: This project is the result of a short tinkering. The code is not really well structured, but worked for my use case. When I find the time, I will do a refactoring. In the meantime, maybe the code will help you as a starting point for other projects.

Getting Started

Follow the steps below to set up the application.

Prerequisites

  • Node.js
  • npm

Before Installation

  1. Invite the Midjourney bot to your own Discord server.
  2. Create a new text channel on your server.
  3. Copy the text channel ID for later use in the .env file.
  4. Set Midjourney generation to public using the /public command.
  5. Adjust your desired Midjourney version and quality settings using the /settings command.

Installation

  1. Clone the repository:
git clone https://github.com/johanneslo1/midjourney-automatic-image-generation.git
  1. Navigate to the project directory:
cd midjourney-automatic-image-generation
  1. Install the dependencies:
npm install
  1. Copy the .env.example file and rename it to .env:
cp .env.example .env
  1. Open the .env file and set the required environment variables:

Usage

Run the application:

npm run start

The application will generate images using Midjourney and post them to the specified Discord channel.

Important Note

Using this application with your personal Discord account to automate tasks is against Discord's Terms of Service. This repository is for educational purposes only, and you should not use it in a way that violates Discord's policies.

Acknowledgements

About

This is a Node.js application for automatically generating images using Midjourney and GPT-3.5-Turbo

Topics

Resources

License

Stars

Watchers

Forks