We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const mjClient = new Midjourney({ ServerId: process.env.MJ_SERVER_ID, ChannelId: process.env.MJ_CHANNEL_ID, SalaiToken: process.env.MJ_SALAI_TOKEN ?? "", Ws: true })
await mjClient.init()
await mjClient.Imagine("Example prompt", (uri, progress) => { console.log("progress called") console.log(uri, progress) })
Describe the bug A clear and concise description of what the bug is.
The progress callback function passed to Imagine is never called. No log messages appear with the above example.
Expected behavior A clear and concise description of what you expected to happen.
Progress function should be called. uri and progress strings logged to the console using the example code given.
Screenshots If applicable, add screenshots to help explain your problem.
🎊 ws ready!!! Hi: null
The text was updated successfully, but these errors were encountered:
Good day. I encountered the same problem. Tell me, did you solve it somehow? Are there any workarounds?
Sorry, something went wrong.
mjclient.wsClient.onSystem("messageUpdate",(msg)=>{ this.messagefilter( msg ); }); if( msg.type == 20 && msg.content ) { let mtxt = msg.content; let perpos = mtxt.lastIndexOf('%)'); if( perpos > 0 ) { let perposb = mtxt.indexOf('(', perpos - 4); let progress = mtxt.substring( perposb + 1,perpos); progress = tools.getInt( progress );
Oh, thanks! Honestly, I've already started rewriting the library for myself)
No branches or pull requests
the code that reproduces this issue or a replay of the bug
const mjClient = new Midjourney({
ServerId: process.env.MJ_SERVER_ID,
ChannelId: process.env.MJ_CHANNEL_ID,
SalaiToken: process.env.MJ_SALAI_TOKEN ?? "",
Ws: true
})
await mjClient.init()
await mjClient.Imagine("Example prompt", (uri, progress) => {
console.log("progress called")
console.log(uri, progress)
})
Describe the bug
Describe the bug
A clear and concise description of what the bug is.
The progress callback function passed to Imagine is never called. No log messages appear with the above example.
Expected behavior
A clear and concise description of what you expected to happen.
Progress function should be called. uri and progress strings logged to the console using the example code given.
Screenshots
If applicable, add screenshots to help explain your problem.
error log
🎊 ws ready!!! Hi: null
The text was updated successfully, but these errors were encountered: