diff --git a/zhenxun/models/fg_request.py b/zhenxun/models/fg_request.py index 4b27ebd4..2f1d8252 100644 --- a/zhenxun/models/fg_request.py +++ b/zhenxun/models/fg_request.py @@ -1,3 +1,4 @@ +import asyncio from typing_extensions import Self from nonebot.adapters import Bot @@ -132,6 +133,7 @@ class FgRequest(Model): bot.self_id ) if file_path: + await asyncio.sleep(2) await PlatformUtils.send_message( bot, req.user_id, diff --git a/zhenxun/utils/manager/bot_profile_manager.py b/zhenxun/utils/manager/bot_profile_manager.py index 91b9d63b..57554e75 100644 --- a/zhenxun/utils/manager/bot_profile_manager.py +++ b/zhenxun/utils/manager/bot_profile_manager.py @@ -76,6 +76,7 @@ class BotProfileManager: _f = PROFILE_IMAGE_PATH / f if _f.is_file(): _f.unlink() + cls._bot_data.clear() @classmethod async def _read_profile(cls, bot_id: str):