From e5ca27722add7f979329f4d130b3eca66b6552ba Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Wed, 16 Jul 2025 02:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0=20BOT=20?= =?UTF-8?q?=E8=87=AA=E6=88=91=E4=BB=8B=E7=BB=8D=E5=B8=AE=E5=8A=A9=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=97=B6=E8=87=AA=E5=8A=A8=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/builtin_plugins/bot_profile.py | 7 ++++++- zhenxun/utils/manager/bot_profile_manager.py | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/bot_profile.py b/zhenxun/builtin_plugins/bot_profile.py index 7864a63e..73b41d54 100644 --- a/zhenxun/builtin_plugins/bot_profile.py +++ b/zhenxun/builtin_plugins/bot_profile.py @@ -21,7 +21,12 @@ __plugin_meta__ = PluginMetadata( author="HibiKier", version="0.1", menu_type="其他", - superuser_help="重载自我介绍", + superuser_help=""" + 在data/bot_profile/bot_id/profile.txt 中编辑BOT自我介绍 + 在data/bot_profile/bot_id/bot_id.png 中编辑BOT头像 + 指令: + 重载自我介绍 + """.strip(), ).to_dict(), ) diff --git a/zhenxun/utils/manager/bot_profile_manager.py b/zhenxun/utils/manager/bot_profile_manager.py index 5e1d1237..91b9d63b 100644 --- a/zhenxun/utils/manager/bot_profile_manager.py +++ b/zhenxun/utils/manager/bot_profile_manager.py @@ -92,6 +92,7 @@ class BotProfileManager: bot_profile_file = bot_file_path / "profile.txt" if not bot_profile_file.exists(): logger.debug(f"BOT自我介绍文件不存在: {bot_profile_file}, 跳过读取") + bot_file_path.touch() return async with aiofiles.open(bot_profile_file, encoding="utf-8") as f: introduction = await f.read()