mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复bot个人介绍重载后不重新读取个人介绍文件
This commit is contained in:
parent
61251ce137
commit
d74c4591e4
@ -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,
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user