midjourney-reborn/README.md

62 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-01-30 12:10:44 +00:00
# Midjourney Reborn 🔥
2023-01-30 12:16:04 +00:00
A Discord bot for all your Midjourney needs! Use this bot to convert text prompts into beautiful artwork via Midjourney V4.
2023-01-30 12:11:33 +00:00
2023-01-30 12:12:54 +00:00
<div align=left>
2023-01-30 12:16:04 +00:00
<img src='art.png'>
2023-01-30 12:12:54 +00:00
</div>
2023-01-30 12:38:25 +00:00
2023-03-10 08:01:16 +00:00
## Usage
2023-04-06 10:45:42 +00:00
To run this demo, clone the repository and then create a `config.json` file containing your bot's token.
2023-03-10 08:01:16 +00:00
```sh
git clone https://github.com/oelin/midjourney-reborn/
cd midjourney-reborn
```
```sh
echo {"token": "YOUR TOKEN"} > ./config.json
```
2023-04-06 10:45:42 +00:00
Then run the following commands to install start the bot.
2023-03-10 08:01:16 +00:00
```sh
npm i
2023-04-06 10:45:42 +00:00
npm run deploy
2023-03-10 08:01:16 +00:00
npm start
```
2023-04-07 22:52:44 +00:00
### Using docker compose
```sh
docker compose up -d
```
```sh
docker exec -it midjourney-reborn-bot node deploy-commands.js
```
2023-03-10 08:01:16 +00:00
2023-01-30 12:38:25 +00:00
## Commands
This project is in active development so expect lots of changes to this section. Currenlty the primary command supported is `/imagine [prompt]`, which can be used to generate images with Midjourney. For instance, `/imagine an astronaut riding a horse on mars artstation` might produce the following image:
<img src='https://replicate.delivery/pbxt/f4nlztv3uz1iFC4AEf2wBYQGTezdVeysvtZUtwfsvZOJDN6AC/out-0.png' width=50%>
In the near future we hope to add support for features such as upscailing, variant generation and additional generation parameters.
## Technologies
2023-01-30 12:51:29 +00:00
This bot utilizes [discord.js](https://discord.js.org/#/) and [Midjourney Client](https://github.com/oelin/midjourney-client) to enable Midjourney V4 access from within Discord. The underlying images are generated on fast GPUs provided by [Replicate](https://replicate.com).
2023-01-30 12:38:25 +00:00
## Resources
* [Midjourney Website](https://www.midjourney.com/home/?callbackUrl=%2Fapp%2F)
* [Midjourney/Openjourney on Replicate](https://replicate.com/prompthero/openjourney)