From bbbe0c90489652a36222255458b656465d9394bd Mon Sep 17 00:00:00 2001 From: Codex Local Date: Fri, 31 Jul 2026 20:22:00 +0800 Subject: [PATCH] chore: unify chat companion display name --- README.md | 6 +++--- interaction_utils.py | 2 +- metadata.yaml | 2 +- pages/陪伴面板/index.html | 2 +- plugin_identity.py | 2 +- tests/test_plugin_metadata_identity.py | 10 ++++++++-- 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 359a674..cf282c3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# 我会永远陪着你 +# 雪色的陪伴插件-聊天侧
- 我会永远陪着你 + 雪色的陪伴插件-聊天侧
面向 AstrBot 的持续陪伴编排插件。它把人格、生活状态、日程、私聊关系、群聊观察、主动消息、图片与语音、长期创作、外部能力和运行诊断组织到同一条长期体验中。 @@ -9,7 +9,7 @@ | 项目 | 当前信息 | | --- | --- | | 插件名 | astrbot_plugin_private_companion | -| 显示名 | 我会永远陪着你 | +| 显示名 | 雪色的陪伴插件-聊天侧 | | 版本 | 5.10.6 | | AstrBot | >= 4.22.0 | | 官方声明平台 | aiocqhttp、qq_official | diff --git a/interaction_utils.py b/interaction_utils.py index 753dc05..67fee6b 100644 --- a/interaction_utils.py +++ b/interaction_utils.py @@ -65,7 +65,7 @@ class InteractionUtilsMixin: def _help_text(self) -> str: return ( - "我会永远陪着你 命令:\n" + "雪色的陪伴插件-聊天侧 命令:\n" "陪伴 状态\n" "陪伴 查看主动判定\n" "陪伴 撤回消息\n" diff --git a/metadata.yaml b/metadata.yaml index 2aacd7e..bb59ae8 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -72,7 +72,7 @@ help: | - 陪伴群 关闭 答疑会优先按“现象 → 当前证据 → 一步检查”排查,不会默认罗列整套配置。描述发生位置、Bot 的实际行为和大概时间会更准确;只有明确询问配置/参数时才会附带待确认的改动建议。`答疑确认`只应用刚才那次已生成的建议,`答疑取消`会丢弃它。\n\n 本插件不只限于私聊。私聊陪伴默认开启;插件私聊目标用户里填写平台用户 ID 后会自动预热主动消息,OneBot 通常填 QQ 号,QQ 官方机器人通常填 openid/平台用户 ID。群聊陪伴支持白名单/黑名单模式,默认白名单,不会主动抢话。插件遵守每日上限、最小间隔、免打扰时间、群聊插话间隔和主动生图额度。看屏幕、生图、戳一戳、语音、QQ 状态同步、B站 AI Bot、SDGen 等联动能力都是可选项,缺失时会自动跳过或回退。 -version: 5.10.7 +version: 5.10.8 support_platforms: - aiocqhttp - qq_official diff --git a/pages/陪伴面板/index.html b/pages/陪伴面板/index.html index b2a7ac5..ed8023d 100644 --- a/pages/陪伴面板/index.html +++ b/pages/陪伴面板/index.html @@ -272,7 +272,7 @@

主回复人格会影响被动回复、群聊人格、关系评估和主动消息口吻;本页下方的资料只是背景知识,不应拿来当完整人格覆盖它。

-

如需指定人格,请到 AstrBot 插件配置页,打开“我会永远陪着你”的配置项,在“插件指定人格 ID”里使用人格选择器选择;留空即继承 AstrBot 当前默认人格。

+

如需指定人格,请到 AstrBot 插件配置页,打开“雪色的陪伴插件-聊天侧”的配置项,在“插件指定人格 ID”里使用人格选择器选择;留空即继承 AstrBot 当前默认人格。

diff --git a/plugin_identity.py b/plugin_identity.py index 38da2a0..7054659 100644 --- a/plugin_identity.py +++ b/plugin_identity.py @@ -6,7 +6,7 @@ from typing import Any PLUGIN_ID = "astrbot_plugin_private_companion" PLUGIN_DISPLAY_NAME = "雪色的陪伴插件-聊天侧" -PLUGIN_VERSION = "5.10.7" +PLUGIN_VERSION = "5.10.8" PLUGIN_DATA_DIRECTORY_KEY = PLUGIN_ID _IDENTITY_SEPARATORS = re.compile(r"[.:/\\]+") diff --git a/tests/test_plugin_metadata_identity.py b/tests/test_plugin_metadata_identity.py index d97a7b3..d686231 100644 --- a/tests/test_plugin_metadata_identity.py +++ b/tests/test_plugin_metadata_identity.py @@ -7,10 +7,16 @@ ROOT = Path(__file__).resolve().parents[1] def test_chat_side_display_name_preserves_stable_plugin_identity(): metadata = (ROOT / "metadata.yaml").read_text(encoding="utf-8") identity = (ROOT / "plugin_identity.py").read_text(encoding="utf-8") + panel = (ROOT / "pages" / "陪伴面板" / "index.html").read_text(encoding="utf-8") + command_help = (ROOT / "interaction_utils.py").read_text(encoding="utf-8") assert "name: astrbot_plugin_private_companion" in metadata assert "display_name: 雪色的陪伴插件-聊天侧" in metadata - assert 'version: 5.10.7' in metadata + assert 'version: 5.10.8' in metadata assert 'PLUGIN_ID = "astrbot_plugin_private_companion"' in identity assert 'PLUGIN_DISPLAY_NAME = "雪色的陪伴插件-聊天侧"' in identity - assert 'PLUGIN_VERSION = "5.10.7"' in identity + assert 'PLUGIN_VERSION = "5.10.8"' in identity + assert "雪色的陪伴插件-聊天侧" in panel + assert "雪色的陪伴插件-聊天侧" in command_help + assert "我会永远陪着你" not in panel + assert "我会永远陪着你" not in command_help