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.
- Host: GitHub
- URL: https://github.com/erictik/midjourney-discord
- Owner: erictik
- License: mit
- Created: 2023-04-25T03:00:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T02:45:12.000Z (about 1 year ago)
- Last Synced: 2024-11-08T19:53:04.439Z (6 months ago)
- Topics: discord-bot, midjourney, midjourney-api-bot
- Language: TypeScript
- Homepage:
- Size: 22.7 MB
- Stars: 72
- Watchers: 2
- Forks: 21
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# midjourney-discord
node.js client for Midjourney wrapper in Discord.
[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)]
```
Upscaling
Reply `u1` `u2` `u3` `u4`
Variations
Reply `v1` `v2` `v3` `v4`
## 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()
```