轻雪天气更新

This commit is contained in:
2024-04-27 02:20:44 +08:00
parent 9cfdd375ca
commit 86c7b70e63
107 changed files with 616 additions and 273 deletions

View File

@ -13,6 +13,13 @@ require("nonebot_plugin_htmlrender")
from nonebot_plugin_htmlrender import *
async def html2image(
html: str,
wait: int = 0,
):
pass
async def template2html(
template: str,
templates: dict,
@ -62,7 +69,6 @@ async def template2image(
if debug:
# 重载资源
raw_html = await template_to_html(
template_name=template_name,
template_path=template_path,
@ -109,4 +115,3 @@ async def url2image(
type=type,
quality=quality
)