Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zcpua authored Jul 25, 2023
1 parent b0d5fb7 commit 1eb6d99
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,29 @@ To run the included example, you must have [Node.js](https://nodejs.org/en/) ins
yarn add midjourney
```
2. Use Imagine 、Variation and Upscale
2. config param
```typescript
export interface MJConfigParam {
SalaiToken: string; //DISCORD_TOKEN
ChannelId?: string; //DISCORD_CHANNEL_ID
ServerId?: string; //DISCORD_SERVER_ID
BotId?: typeof MJBot | typeof NijiBot; //DISCORD_BOT_ID MJBot OR NijiBot
Debug?: boolean; // print log
ApiInterval?: number; //ApiInterval request api interval
Limit?: number; //Limit of get message list
MaxWait?: number;
Remix?: boolean; //Remix:true use remix mode
Ws?: boolean; //Ws:true use websocket get discord message (ephemeral message)
HuggingFaceToken?: string; //HuggingFaceToken for verify human
SessionId?: string;
DiscordBaseUrl?: string;
ImageProxy?: string;
WsBaseUrl?: string;
fetch?: FetchFn; //Node.js<18 need node.fetch Or proxy
WebSocket?: WebSocketCl; //isomorphic-ws Or proxy
}
```
3. Use Imagine 、Variation and Upscale
```typescript
import { Midjourney } from "midjourney";
Expand Down Expand Up @@ -199,28 +221,7 @@ To run the included example, you must have [Node.js](https://nodejs.org/en/) ins
console.log(CustomZoomout);
```
3. config param
```
export interface MJConfigParam {
SalaiToken: string; //DISCORD_TOKEN
ChannelId?: string; //DISCORD_CHANNEL_ID
ServerId?: string; //DISCORD_SERVER_ID
BotId?: typeof MJBot | typeof NijiBot; //DISCORD_BOT_ID MJBot OR NijiBot
Debug?: boolean; // print log
ApiInterval?: number; //ApiInterval request api interval
Limit?: number; //Limit of get message list
MaxWait?: number;
Remix?: boolean; //Remix:true use remix mode
Ws?: boolean; //Ws:true use websocket get discord message (ephemeral message)
HuggingFaceToken?: string; //HuggingFaceToken for verify human
SessionId?: string;
DiscordBaseUrl?: string;
ImageProxy?: string;
WsBaseUrl?: string;
fetch?: FetchFn; //Node.js<18 need node.fetch Or proxy
WebSocket?: WebSocketCl; //isomorphic-ws Or proxy
}
```
## route-map
Expand Down

0 comments on commit 1eb6d99

Please sign in to comment.