feat: pydantic v2 支持

fix: 自动更新后更新依赖
This commit is contained in:
2024-04-27 21:38:37 +08:00
parent 4d274df6b2
commit d80c4a7c90
4 changed files with 15 additions and 13 deletions

View File

@ -293,6 +293,7 @@ async def _(bot: T_Bot):
async def every_day_update():
if get_config("auto_update", default=True):
result, logs = update_liteyuki()
pip.main(["install", "-r", "requirements.txt"])
if result:
await broadcast_to_superusers(f"Liteyuki updated: ```\n{logs}\n```")
nonebot.logger.info(f"Liteyuki updated: {logs}")