mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +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
-1
@@ -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
@@ -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
@@ -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