1.0.8 • Published 2 years ago
midjourney-discord v1.0.8
midjourney-discord
node.js client for Midjourney wrapper in Discord.
Implemented commands documentation
Join discord experience 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 installed. Then, run the following commands in the root directory of this project:
- clone the repository
git clone- install dependencies
npm install- set the environment variables
How to get your Discord SALAI_TOKEN:
How to create a Discord bot and add it to your server:
export SERVER_ID="108250087147832934"
export CHANNEL_ID="109489299228171884"
export SALAI_TOKEN="your-salai-token"
export SALAI_DAVINCI_TOKENTOKEN="Token of Discord bot"- run the example
npm run devInstall
yarn add midjourney-discordor
npm install midjourney-discordUsage
Docker
docker run -d --env-file .env erictik/midjourney-discordNodeJS
import { MidjourneyBot } from 'midjourney-discord'
const client = new Midjourney({
ServerId: <string>process.env.SERVER_ID,
ChannelId: <string>process.env.CHANNEL_ID,
SalaiToken: <string>process.env.SALAI_TOKEN,
Debug: true,
})
await client.start()