Can-Chen / wrap-midjourney

获取discord服务器中midjourney AI生图的结果。一个中转服务,可以接入到任意第三方平台微信、飞书、QQ等/Obtain the midjourney AI image generation results from the Discord server. It is a transfer service that can be connected to any third-party platform, such as WeChat, Feishu, QQ, etc.
245 stars 58 forks source link

midjourney AI #2

Closed Can-Chen closed 1 year ago

Can-Chen commented 1 year ago

midjourney AI机器人出了一个 图转提示词的功能 /describe 目前有两个问题未解决

  1. 把图上传到discord服务器上 给的是一个临时地址 不是discord cdn地址 { "type": 2, "application_id": "936929561302675456", "guild_id": "xx", "channel_id": "xx", "session_id": "b60af517799ac333be9abb896a15f134", "data": { "version": "1092492867185950853", "id": "1092492867185950852", "name": "describe", "type": 1, "options": [ { "type": 11, "name": "image", "value": 0 } ], "application_command": { "id": "1092492867185950852", "application_id": "936929561302675456", "version": "1092492867185950853", "default_member_permissions": null, "type": 1, "nsfw": false, "name": "describe", "description": "Writes a prompt based on your image.", "dm_permission": true, "options": [ { "type": 11, "name": "image", "description": "The image to describe", "required": true } ] }, "attachments": [ { "id": "0", "filename": "test.png", "uploaded_filename": "5f587d99-1adb-4a57-81c7-7037b3464d5c/9b8e453bab5435a4.png" } ] } }
  2. midjourney AI机器人回复的内容 不属于discord message 收不到推送 解决了的作者可以pr一下
EchoAGI commented 1 year ago

已解决. 留下您的vx

EchoAGI commented 1 year ago
  1. 上传 attachments
  2. 通过 interactions 端点 调用 /describe, /blend 也是一样
  3. 监听 describe, blend message. 得到结果返回
Can-Chen commented 1 year ago
  1. 上传 attachments
  2. 通过 interactions 端点 调用 /describe, /blend 也是一样
  3. 监听 describe, blend message. 得到结果返回

你上传是怎么解决的 attachments 配合 google storage

Can-Chen commented 1 year ago

/describe和/blend解决了

TODO: /info

taigulilijie commented 1 year ago

怎么联系到您 vx

xhzth70911 commented 1 year ago

/describe和/blend解决了

TODO: /信息

/info怎么解决,我直接改一个info的json,直接就报错: response: {"code": 50035, "errors": {"data": {"_errors": [{"code": "INTERACTION_APPLICATION_COMMAND_INVALID", "message": "Invalid interaction application command"}]}}, "message": "Invalid Form B ody"} 400 Bad Request

(FPG 0HP)QZ5FF0`R}~K _X