mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 19:10:55 +00:00
✨ 轻雪天气更新
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user