From da6d5b4be4044eac7d12cb3914f8d3abeacf0439 Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Thu, 24 Jul 2025 15:59:28 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Dbot=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=BB=8B=E7=BB=8D=E9=87=8D=E8=BD=BD=E5=90=8E=E4=B8=8D=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E8=AF=BB=E5=8F=96=E4=B8=AA=E4=BA=BA=E4=BB=8B=E7=BB=8D?= =?UTF-8?q?=E6=96=87=E4=BB=B6=20(#1990)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/models/fg_request.py | 2 ++ zhenxun/utils/manager/bot_profile_manager.py | 1 + 2 files changed, 3 insertions(+) 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):