mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
feat: 添加对htmlrender 0.8.*版本的适配 (#2151)
* Add render_backend and render_playwright to init
* 🚨 auto fix by pre-commit hooks
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
pre-commit-ci[bot]
parent
023e865f34
commit
9f202666aa
+5
-1
@@ -207,7 +207,11 @@ def _run_worker() -> None:
|
||||
f"使用 {htmlrender_browser_channel} 作为 htmlrender 驱动启动..."
|
||||
)
|
||||
|
||||
nonebot.init(htmlrender_browser_channel=htmlrender_browser_channel)
|
||||
nonebot.init(
|
||||
htmlrender_browser_channel=htmlrender_browser_channel,
|
||||
render_backend="playwright",
|
||||
render_playwright={"channel": htmlrender_browser_channel},
|
||||
)
|
||||
|
||||
from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user