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