From 9f202666aa6602af5d63a9bf8d2ebe3a18ebeae3 Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Thu, 30 Jul 2026 16:31:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AF=B9htmlrender?= =?UTF-8?q?=200.8.*=E7=89=88=E6=9C=AC=E7=9A=84=E9=80=82=E9=85=8D=20(#2151)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add render_backend and render_playwright to init * :rotating_light: auto fix by pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- zhenxun/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zhenxun/cli.py b/zhenxun/cli.py index 5526d426..d40e249e 100644 --- a/zhenxun/cli.py +++ b/zhenxun/cli.py @@ -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