diff --git a/liteyuki/plugins/liteyuki_sign_status.py b/liteyuki/plugins/liteyuki_sign_status.py index f682ca9..e02dedf 100644 --- a/liteyuki/plugins/liteyuki_sign_status.py +++ b/liteyuki/plugins/liteyuki_sign_status.py @@ -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 }, diff --git a/liteyuki/plugins/liteyuki_status/status.py b/liteyuki/plugins/liteyuki_status/status.py index 7478d12..e75205a 100644 --- a/liteyuki/plugins/liteyuki_status/status.py +++ b/liteyuki/plugins/liteyuki_status/status.py @@ -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={"状态"}, diff --git a/liteyuki/plugins/liteyuki_weather/qweather.py b/liteyuki/plugins/liteyuki_weather/qweather.py index 91ace41..426db65 100644 --- a/liteyuki/plugins/liteyuki_weather/qweather.py +++ b/liteyuki/plugins/liteyuki_weather/qweather.py @@ -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