From 3ee7366b412bea76f2e22c6c5dc020f7a403c235 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sun, 21 Jul 2024 16:57:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=93=94=E5=93=A9=E5=93=94=E5=93=A9=E7=9B=B4=E6=92=AD=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 58a944b..8eac03c 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -484,9 +484,13 @@ export class tools extends plugin { // logger.info(streamId) // 提取相关信息 const liveData = await this.getBiliStream(streamId); - // logger.info(liveData); - const { title, user_cover, description, tags } = liveData.data.data; - e.reply([segment.image(user_cover), `直播间:${ title }\n\n简述:${ description }\n标签:${ tags }`]); + logger.info(liveData); + const { title, user_cover, keyframe, description, tags } = liveData.data.data; + e.reply([ + segment.image(user_cover), + segment.image(keyframe), + `识别:哔哩哔哩直播,${title}${description ? `\n\n简述:${description}\n` : ''}${tags ? `标签:${tags}\n` : ''}` + ]); return true; } // 处理专栏