1
0
forked from bot/app

📝 函数指引

This commit is contained in:
远野千束 2024-06-02 13:58:41 +08:00
parent bdb1191f9e
commit d6341c88cd
3 changed files with 4 additions and 9 deletions

View File

@ -154,7 +154,7 @@ async def generate_chart(limit):
)
img = await template2image(
template=get_path("templates/sign_status.html", debug=True),
template=get_path("templates/sign_status.html"),
templates={
"data": data
},

View File

@ -1,14 +1,10 @@
from nonebot import require
from liteyuki.utils.base.resource import get_path
from liteyuki.utils.message.html_tool import template2image
from liteyuki.utils.base.language import get_user_lang
from .api import *
from liteyuki.utils import event as event_utils
from liteyuki.utils.base.language import get_user_lang
from liteyuki.utils.base.ly_typing import T_Bot, T_MessageEvent
from .api import *
require("nonebot_plugin_alconna")
from nonebot_plugin_alconna import on_alconna, Alconna, Args, Subcommand, Arparma, UniMessage
from nonebot_plugin_alconna import on_alconna, Alconna, Subcommand, UniMessage
status_alc = on_alconna(
aliases={"状态"},

View File

@ -97,6 +97,5 @@ async def get_weather_now_card(matcher: Matcher, event: T_MessageEvent, keyword:
"localization" : get_local_data(ulang.lang_code)
}
},
wait=1
)
return image