Skip to content

A Discord Bot that can generate text based on a given prompt using Replicate

License

Notifications You must be signed in to change notification settings

dawgcodes/Midjourney

Repository files navigation

Midjourney

Midjourney is a versatile Discord bot that now also offers text-to-text capabilities through its integration with Google Gemini, an advanced text generation model platform. It automatically responds to specific commands on Discord, generating text or images based on the nature of users' requests.

Installation

[x] Create Discord Bot and get token and client id from Discord Developer Portal

[x] Download Node.js

[x] Create Replicate account and get token

[x] Download Midjourney

🚀 Installation from source

  1. Clone the Midjourney repository:
git clone https://github.com/dawgcodes/Midjourney.git
  1. change the directory to Midjourney
cd Midjourney
  1. Install the required packages:
npm i
or
yarn i
  1. Set up your environment variables:

Create a .env file in the root directory of your project with the following variables: or you can use the .env.example file

TOKEN= #Discord Bot Token
CLIENT_ID= #Discord Bot Client ID
ACTIVITY=/help

#For REPLICATE
REPLICATE_TOKEN= #Replicate Token from https://replicate.com/signin
REPLICATE_MODEL=bytedance/sdxl-lightning-4step:727e49a643e999d602a896c774a0658ffefea21465756a6ce24b7ea4165eba6a

#For GEMINI
GEMINI_KEY= #GEMINI key from https://makersuite.google.com/
GEMINI_MODEL=gemini-1.5-flash-latest
  1. Run the bot:
npm start

📜 Contributing

Thank you for your interest in contributing to AikouAI! Here are some guidelines to follow when contributing:

  1. Fork the repository and create a new branch for your feature or bug fix.
  2. Write clean and concise code that follows the established coding style.
  3. Create detailed and thorough documentation for any new features or changes.
  4. Write and run tests for your code.
  5. Submit a pull request with your changes.

Your contribution will be reviewed by the project maintainers, and any necessary feedback or changes will be discussed with you. We appreciate your help in making Midjourney better!

👥 Contributors

Thanks goes to these wonderful people :

License

MIT