From b674e3ff0809fa887606f3bb5a360b5b7fc5eb22 Mon Sep 17 00:00:00 2001 From: leo_chen Date: Mon, 3 Jun 2024 14:31:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E6=80=BB=E7=BB=93=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ package.json | 4 ++-- src/engine.js | 5 +++-- src/index.js | 3 ++- src/office.js | 3 ++- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 224fd5c..d74e82b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 更新日志 +## V4.6.33(2024-05-23) +1、添加聊天内容总结 + ## V4.6.32(2024-05-23) 1、把 h5链接消息作为普通消息处理,接收到消息的前缀为“[链接]:http://xxxxx” diff --git a/package.json b/package.json index f889c22..27733bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechat-assistant", - "version": "4.6.32", + "version": "4.6.33", "description": "智能微秘书,一个全能的微信机器人管理平台,最简单的方式接入 ChatGPT,FastGPT,Dify,Coze知识库,支持绘图,联网查询,语音识别,各种定时任务,支持企微、个微、公众号、5G 消息、WhatsApp", "main": "index.js", "type": "module", @@ -45,7 +45,7 @@ "wechaty-puppet-padlocal": "^1.20.1", "wechaty-puppet-service": "^1.18.2", "wechaty-puppet-wechat4u": "^1.14.12", - "wechaty-web-panel": "^1.6.54" + "wechaty-web-panel": "^1.6.56" }, "devDependencies": { "pm2": "^4.2.3" diff --git a/src/engine.js b/src/engine.js index 91d1a7a..4aea9a1 100644 --- a/src/engine.js +++ b/src/engine.js @@ -1,5 +1,5 @@ import {WechatyBuilder} from 'wechaty' -import {WechatyWebPanelPlugin} from 'wechaty-web-panel' +import {WechatyWebPanelPlugin, WechatyMessageRecordPlugin} from 'wechaty-web-panel' import {PuppetEngine} from 'wechaty-puppet-engine' @@ -19,5 +19,6 @@ bot = WechatyBuilder.build({ bot.use(WechatyWebPanelPlugin({ apiKey: '填入微秘书平台apikey', apiSecret: '填入微秘书平台apisecret', })) +bot.use(WechatyMessageRecordPlugin()) bot.start() - .catch((e) => console.error(e)); \ No newline at end of file + .catch((e) => console.error(e)); diff --git a/src/index.js b/src/index.js index 5155714..d563296 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import {WechatyBuilder} from 'wechaty' -import {WechatyWebPanelPlugin} from 'wechaty-web-panel' +import {WechatyWebPanelPlugin, WechatyMessageRecordPlugin} from 'wechaty-web-panel' const name = 'wechat-assistant-pro'; let bot = ''; @@ -48,5 +48,6 @@ if (padLocalToken) { bot.use(WechatyWebPanelPlugin({ apiKey: '***', apiSecret: '****', })) +bot.use(WechatyMessageRecordPlugin()) bot.start() .catch((e) => console.error(e)); diff --git a/src/office.js b/src/office.js index 6b33473..a6ad312 100644 --- a/src/office.js +++ b/src/office.js @@ -1,5 +1,5 @@ import {WechatyBuilder} from 'wechaty' -import {WechatyWebPanelPlugin} from 'wechaty-web-panel' +import {WechatyWebPanelPlugin, WechatyMessageRecordPlugin} from 'wechaty-web-panel' import {PuppetOA} from 'wechaty-puppet-official-account' const name = 'office-assistant-pro'; let bot = ''; @@ -27,5 +27,6 @@ bot apiSecret: '****' } )) +bot.use(WechatyMessageRecordPlugin()) bot.start() .catch((e) => console.error(e));