chore: 限制 nonebot-plugin-htmlrender 版本为 <0.7.0 (#2157)

* Update version constraint for nonebot-plugin-htmlrender

* Refactor nonebot initialization in cli.py

Simplified nonebot initialization by removing redundant parameters.

* 更新 requirements.txt
This commit is contained in:
molanp
2026-09-01 15:31:53 +08:00
committed by GitHub
parent 29979a9b21
commit 39ed1ade14
3 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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
+1 -5
View File
@@ -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