MCPcopy Index your code
hub / github.com/erictik/midjourney-discord

github.com/erictik/midjourney-discord @v1.0.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.8 ↗ · + Follow
19 symbols 36 edges 5 files 0 documented · 0% updated 2y agov1.0.8 · 2023-06-19★ 747 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

midjourney-discord

node.js client for Midjourney wrapper in Discord.

    <a href="https://discord.gg/GavuGHQbV4"><img src="https://img.shields.io/discord/1082500871478329374?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
    <a href="https://hub.docker.com/r/erictik/midjourney-discord/tags">
        <img src="https://img.shields.io/docker/v/erictik/midjourney-discord?color=5865F2&logo=docker&logoColor=white" alt="Docker" />
    </a>

web ui example

Implemented commands documentation

Join discord experience Generating idea

/oh_imagine [ MT : prompt (string)]

prompt_pwz2u1

Upscaling
Reply u1 u2 u3 u4

upscale

Variations
Reply v1 v2 v3 v4 variation

Example

To run the included example, you must have Node.js installed. Then, run the following commands in the root directory of this project:

  1. clone the repository
git clone
  1. install dependencies
npm install
  1. 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"
  1. run the example
npm run dev

Install

yarn add midjourney-discord

or

npm install midjourney-discord

Usage

Docker

docker run -d  --env-file .env erictik/midjourney-discord

NodeJS

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()

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 10
Class 4
Function 3
Interface 2

Languages

TypeScript100%

Modules by API surface

src/bot.ts11 symbols
examples/proxy.ts5 symbols
src/interfaces/index.ts2 symbols
cmd/bot.ts1 symbols

For agents

$ claude mcp add midjourney-discord \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page