From f7597496f5fbf3d5525ce606fc09aa862861e8d5 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Fri, 19 Jul 2024 22:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20reactor:=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=BF=BB=E8=AF=91=E7=9A=84=E7=A9=BA=E5=80=BC?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/tools.js b/apps/tools.js index 1753219..0d8f3ff 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1629,6 +1629,7 @@ export class tools extends plugin { return { title, album, artist }; } + // 链接总结 async linkShareSummary(e) { // 判断是否有总结的条件 if (_.isEmpty(this.aiApiKey) || _.isEmpty(this.aiApiKey)) { @@ -1652,7 +1653,13 @@ export class tools extends plugin { return true; } + // 图片翻译和总结 async pictureTranslate(e) { + // 判断是否有总结的条件 + if (_.isEmpty(this.aiApiKey) || _.isEmpty(this.aiApiKey)) { + e.reply(`没有配置 Kimi,无法为您总结!${ HELP_DOC }`) + return true; + } // logger.info(Bot.pickGroup(e.group_id, true)) const curGroup = Bot.pickGroup(e.group_id, true); const curGroupMessages = await curGroup.getChatHistory(e.message_seq, 1);