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()