From 095e7af2f2364d8fe4a07269fb5a31e5867a4000 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 29 Mar 2026 18:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=BF=BD=E7=95=A5=E8=B7=A8?= =?UTF-8?q?=E6=88=BF=E5=BC=B9=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/msg-logging/listener.py | 2 +- plugins/msg-logging/plugin.json | 2 +- plugins/native-ui/listener.py | 2 +- plugins/native-ui/plugin.json | 2 +- plugins/text-to-speech/listener.py | 2 +- plugins/text-to-speech/plugin.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/msg-logging/listener.py b/plugins/msg-logging/listener.py index 699cba9..59c772a 100644 --- a/plugins/msg-logging/listener.py +++ b/plugins/msg-logging/listener.py @@ -66,7 +66,7 @@ class MsgHandler(blcsdk.BaseHandler): _del_room(extra.room_id) def _on_add_text(self, client: blcsdk.BlcPluginClient, message: sdk_models.AddTextMsg, extra: sdk_models.ExtraData): - if extra.is_from_plugin: + if extra.is_from_plugin or message.is_mirror: return room = _get_or_add_room(extra.room_id) room.log(f'[dm] {message.author_name}:{message.content}') diff --git a/plugins/msg-logging/plugin.json b/plugins/msg-logging/plugin.json index 8005a7e..c95f05e 100644 --- a/plugins/msg-logging/plugin.json +++ b/plugins/msg-logging/plugin.json @@ -1,6 +1,6 @@ { "name": "消息日志", - "version": "1.0.0", + "version": "1.0.1", "author": "xfgryujk", "description": "把收到的消息记录到文件中。点击管理打开日志目录。日志不会自动清理,记得定期清理。发布地址:https://github.com/xfgryujk/blivechat/discussions/163", "run": "msg-logging.exe", diff --git a/plugins/native-ui/listener.py b/plugins/native-ui/listener.py index e6fefa0..65e752b 100644 --- a/plugins/native-ui/listener.py +++ b/plugins/native-ui/listener.py @@ -64,7 +64,7 @@ class MsgHandler(blcsdk.BaseHandler): _del_room(extra.room_key) def _on_add_text(self, client: blcsdk.BlcPluginClient, message: sdk_models.AddTextMsg, extra: sdk_models.ExtraData): - if extra.is_from_plugin: + if extra.is_from_plugin or message.is_mirror: return room = _get_or_add_room(extra.room_key, extra.room_id) room.add_danmaku(message.uid) diff --git a/plugins/native-ui/plugin.json b/plugins/native-ui/plugin.json index b15196d..ce736c3 100644 --- a/plugins/native-ui/plugin.json +++ b/plugins/native-ui/plugin.json @@ -1,6 +1,6 @@ { "name": "原生UI", - "version": "1.0.0", + "version": "1.0.1", "author": "xfgryujk", "description": "提供托盘图标和用来看弹幕的窗口。支持置顶窗口和设置不透明度。支持付费消息分开显示。统计弹幕数、付费用户等信息。发布地址:https://github.com/xfgryujk/blivechat/discussions/166", "run": "native-ui.exe", diff --git a/plugins/text-to-speech/listener.py b/plugins/text-to-speech/listener.py index 3146ada..ffd5ced 100644 --- a/plugins/text-to-speech/listener.py +++ b/plugins/text-to-speech/listener.py @@ -49,7 +49,7 @@ class MsgHandler(blcsdk.BaseHandler): logger.info('Config path is "%s"', config_path) def _on_add_text(self, client: blcsdk.BlcPluginClient, message: sdk_models.AddTextMsg, extra: sdk_models.ExtraData): - if extra.is_from_plugin: + if extra.is_from_plugin or message.is_mirror: return cfg = config.get_config() if cfg.template_text == '': diff --git a/plugins/text-to-speech/plugin.json b/plugins/text-to-speech/plugin.json index f39be73..0c906a8 100644 --- a/plugins/text-to-speech/plugin.json +++ b/plugins/text-to-speech/plugin.json @@ -1,6 +1,6 @@ { "name": "语音播报", - "version": "1.0.0", + "version": "1.0.1", "author": "xfgryujk", "description": "用语音读出收到的消息。点击管理打开配置文件,编辑保存后重启插件生效。发布地址:https://github.com/xfgryujk/blivechat/discussions/164", "run": "text-to-speech.exe",