An open API service indexing awesome lists of open source software.

https://github.com/erictik/midjourney-discord

node.js client for MidJourney wrapper in Discord.
https://github.com/erictik/midjourney-discord

discord-bot midjourney midjourney-api-bot

Last synced: 5 months ago
JSON representation

node.js client for MidJourney wrapper in Discord.

Awesome Lists containing this project

README

        

# midjourney-discord

node.js client for Midjourney wrapper in Discord.



Discord server

Docker


[web ui example](https://github.com/erictik/midjourney-ui/)

## Implemented commands documentation
[Join discord experience](https://discord.gg/GavuGHQbV4)
Generating idea
```
/oh_imagine [ MT : prompt (string)]
```
![prompt_pwz2u1](image/prompt.gif)

Upscaling
Reply `u1` `u2` `u3` `u4`

![upscale](image/upscale.gif)

Variations
Reply `v1` `v2` `v3` `v4`
![variation](image/variation.gif)

## Example
To run the included example, you must have [Node.js](https://nodejs.org/en) installed. Then, run the following commands in the root directory of this project:

1. clone the repository
```
git clone
```
2. install dependencies
```
npm install
```
3. set the environment variables
[How to get your Discord SALAI_TOKEN:](https://www.androidauthority.com/get-discord-token-3149920/)
[How to create a Discord bot and add it to your server:](https://www.xda-developers.com/how-to-create-discord-bot/)
```
export SERVER_ID="108250087147832934"
export CHANNEL_ID="109489299228171884"
export SALAI_TOKEN="your-salai-token"
export SALAI_DAVINCI_TOKENTOKEN="Token of Discord bot"
```
4. run the example
```
npm run dev
```

## Install
```
yarn add midjourney-discord
```
or
```
npm install midjourney-discord
```

## Usage
### Docker
```bash
docker run -d --env-file .env erictik/midjourney-discord
```

### NodeJS
```js
import { MidjourneyBot } from 'midjourney-discord'
const client = new Midjourney({
ServerId: process.env.SERVER_ID,
ChannelId: process.env.CHANNEL_ID,
SalaiToken: process.env.SALAI_TOKEN,
Debug: true,
})
await client.start()
```