Skip to content
New issue

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

更换图片接口后,发送图片速度慢 #8

Closed
augenstern326 opened this issue Apr 21, 2021 · 1 comment
Closed

更换图片接口后,发送图片速度慢 #8

augenstern326 opened this issue Apr 21, 2021 · 1 comment

Comments

@augenstern326
Copy link

augenstern326 commented Apr 21, 2021

您好,可以向您请教一个问题吗?

由于觉得您的mm插件中图片比较暴露,我更换了图片接口,但是现在遇到了以下的问题:

通过返回的json中imgurl获取图片的地址,机器人在发送图片时的速度比较慢,有明显的间隔

图片的大小<1M(大概几百kb)

以下是源代码,在您mm插件基础上修改的

   let { data }= await axios("https://www.dmoe.cc/random.php?return=json")  
   const file = data.imgurl
   return [
         {
              type: 'image',
              data:
                    {
		       file	
                    }
         }
   ]
@zhuweiyou
Copy link
Member

那应该是你图太大了, 原来我用的图大概只有几十KB的样子.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants