mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-09-12 19:26:24 +00:00
🐛 [plugin]: 修复htmlredner造成的错误
This commit is contained in:
@ -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
|
||||
###
|
||||
)
|
||||
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user