midjourney-reborn/README.md

53 lines
1.6 KiB
Markdown
Raw Normal View History

2023-01-30 07:10:44 -05:00
# Midjourney Reborn 🔥
2023-01-30 07:16:04 -05: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 07:11:33 -05:00
2023-01-30 07:12:54 -05:00
<div align=left>
2023-01-30 07:16:04 -05:00
<img src='art.png'>
2023-01-30 07:12:54 -05:00
</div>
2023-01-30 07:38:25 -05:00
2023-03-10 03:01:16 -05:00
## Usage
2023-04-06 06:45:42 -04:00
To run this demo, clone the repository and then create a `config.json` file containing your bot's token.
2023-03-10 03:01:16 -05:00
```sh
git clone https://github.com/oelin/midjourney-reborn/
cd midjourney-reborn
```
```sh
echo {"token": "YOUR TOKEN"} > ./config.json
```
2023-04-06 06:45:42 -04:00
Then run the following commands to install start the bot.
2023-03-10 03:01:16 -05:00
```sh
npm i
2023-04-06 06:45:42 -04:00
npm run deploy
2023-03-10 03:01:16 -05:00
npm start
```
2023-01-30 07:38:25 -05: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 07:51:29 -05: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 07:38:25 -05:00
## Resources
* [Midjourney Website](https://www.midjourney.com/home/?callbackUrl=%2Fapp%2F)
* [Midjourney/Openjourney on Replicate](https://replicate.com/prompthero/openjourney)