From 30f340ec28385d22365b5f7e97538c8e2cc81da3 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sat, 10 Aug 2024 16:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=B0=86=20`B=E7=AB=99?= =?UTF-8?q?=E6=80=BB=E7=BB=93`=20=E8=BD=AC=E5=8F=91=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 6b72aa1..d5d58a1 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -581,18 +581,20 @@ export class tools extends plugin { let biliInfo = [`识别:哔哩哔哩:${ title }`, combineContent] // 总结 const summary = await this.getBiliSummary(bvid, cid, owner.mid); + // 封装总结 + const Msg = await this.makeForwardMsg(e, [`「R插件 x B站」联合为您总结内容:`, summary]); // 不提取音乐,正常处理 if (isLimitDuration) { // 加入图片 - biliInfo.unshift(segment.image(pic)) + biliInfo.unshift(segment.image(pic)); // 限制视频解析 const durationInMinutes = (curDuration / 60).toFixed(0); - biliInfo.push(`${ DIVIDING_LINE.replace('{}', '限制说明') }\n当前视频时长约:${ durationInMinutes }分钟,\n大于管理员设置的最大时长 ${ this.biliDuration / 60 } 分钟!`) - summary && biliInfo.push(`\n${ summary }`); + biliInfo.push(`${ DIVIDING_LINE.replace('{}', '限制说明') }\n当前视频时长约:${ durationInMinutes }分钟,\n大于管理员设置的最大时长 ${ this.biliDuration / 60 } 分钟!`); + summary && (await e.reply(Msg)); e.reply(biliInfo); return true; } else { - summary && biliInfo.push(`\n${ summary }`); + summary && (await e.reply(Msg)); e.reply(biliInfo); } @@ -746,7 +748,7 @@ export class tools extends plugin { * @param bvid 稿件 * @param cid 视频 cid * @param up_mid UP主 mid - * @return {Promise} + * @return {Promise} */ async getBiliSummary(bvid, cid, up_mid) { // 这个有点用,但不多