🐛 [plugin]: 修复htmlredner造成的错误

This commit is contained in:
2024-09-01 11:21:45 +08:00
parent 34a6261f27
commit 89cb75f105
13 changed files with 15 additions and 641 deletions

View File

@ -1,14 +1,14 @@
import os.path
import os
import aiofiles # type: ignore
import nonebot
from nonebot import require
require("nonebot_plugin_htmlrender")
# require("nonebot_plugin_htmlrender")
from nonebot_plugin_htmlrender import ( # type: ignore
template_to_html,
template_to_pic,
md_to_pic
) # type: ignore
@ -85,3 +85,5 @@ async def template2image(
device_scale_factor=scale_factor
###
)

View File

@ -7,16 +7,12 @@ import aiofiles
import aiohttp
import nonebot
from PIL import Image
from nonebot import require
from nonebot.adapters import satori
from nonebot.adapters.onebot import v11
from src.utils.htmlrender import md_to_pic
from .html_tool import md_to_pic
from .. import load_from_yaml
from ..base.ly_typing import T_Bot, T_Message, T_MessageEvent
config = load_from_yaml("config.yml")