From 39ed1ade1469318d53b5beb943f05b89664d294e Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Tue, 1 Sep 2026 15:31:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=99=90=E5=88=B6=20nonebot-plugin-ht?= =?UTF-8?q?mlrender=20=E7=89=88=E6=9C=AC=E4=B8=BA=20<0.7.0=20(#2157)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update version constraint for nonebot-plugin-htmlrender * Refactor nonebot initialization in cli.py Simplified nonebot initialization by removing redundant parameters. * 更新 requirements.txt --- pyproject.toml | 2 +- requirements.txt | 2 +- zhenxun/cli.py | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a8eee325..a2c0a245 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "pillow>=10.0.0,<11.0.0", "retrying>=1.3.4,<2.0.0", "aiofiles>=23.2.1", - "nonebot-plugin-htmlrender>=0.6.0,<1.0.0", + "nonebot-plugin-htmlrender>=0.6.0,<0.7.0", "pypinyin>=0.51.0", "beautifulsoup4>=4.12.3,<5.0.0", "lxml>=5.1.0,<6.0.0", diff --git a/requirements.txt b/requirements.txt index 14f4dcec..cde73fd8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ nonebot2[fastapi]>=2.3.3 Pillow>=10.0.0,<11.0.0 retrying>=1.3.4,<2.0.0 aiofiles>=23.2.1 -nonebot-plugin-htmlrender>=0.6.0,<1.0.0 +nonebot-plugin-htmlrender>=0.6.0,<0.7.0 pypinyin>=0.51.0 beautifulsoup4>=4.12.3,<5.0.0 lxml>=5.1.0,<6.0.0 diff --git a/zhenxun/cli.py b/zhenxun/cli.py index d40e249e..5526d426 100644 --- a/zhenxun/cli.py +++ b/zhenxun/cli.py @@ -207,11 +207,7 @@ def _run_worker() -> None: f"使用 {htmlrender_browser_channel} 作为 htmlrender 驱动启动..." ) - nonebot.init( - htmlrender_browser_channel=htmlrender_browser_channel, - render_backend="playwright", - render_playwright={"channel": htmlrender_browser_channel}, - ) + nonebot.init(htmlrender_browser_channel=htmlrender_browser_channel) from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter