From 586fdfe10caf179bc9b3ae640f12e8a25e7c7d33 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Thu, 23 Mar 2023 10:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8Dins?= =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/tools.js b/apps/tools.js index 1d6cd01..aec2d57 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -887,8 +887,10 @@ export class tools extends plugin { }; await fetch(API).then(async resp => { const html = await resp.text(); + const desc = html.match(/(?<=content=").*?(?=\")/g)?.[2]; const images = html.match(/
/g); if (!_.isNull(images)) { + e.reply(`识别:Insta,${desc || "暂无描述"}\n`) images.map((item, index) => { const imgUrl = /(?<=data-src=").*?(?=")/ .exec(item)[0]