mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-26 11:45:04 +08:00
📝 函数指引
This commit is contained in:
parent
bdb1191f9e
commit
d6341c88cd
@ -154,7 +154,7 @@ async def generate_chart(limit):
|
|||||||
)
|
)
|
||||||
|
|
||||||
img = await template2image(
|
img = await template2image(
|
||||||
template=get_path("templates/sign_status.html", debug=True),
|
template=get_path("templates/sign_status.html"),
|
||||||
templates={
|
templates={
|
||||||
"data": data
|
"data": data
|
||||||
},
|
},
|
||||||
|
@ -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 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 liteyuki.utils.base.ly_typing import T_Bot, T_MessageEvent
|
||||||
|
from .api import *
|
||||||
|
|
||||||
require("nonebot_plugin_alconna")
|
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(
|
status_alc = on_alconna(
|
||||||
aliases={"状态"},
|
aliases={"状态"},
|
||||||
|
@ -97,6 +97,5 @@ async def get_weather_now_card(matcher: Matcher, event: T_MessageEvent, keyword:
|
|||||||
"localization" : get_local_data(ulang.lang_code)
|
"localization" : get_local_data(ulang.lang_code)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
wait=1
|
|
||||||
)
|
)
|
||||||
return image
|
return image
|
||||||
|
Loading…
Reference in New Issue
Block a user