mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-08 21:30:01 +08:00
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:
+1
-5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user