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 -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