From d6341c88cd454004ad29d5b1302a56ffc0208c9d Mon Sep 17 00:00:00 2001 From: snowy Date: Sun, 2 Jun 2024 13:58:41 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E5=87=BD=E6=95=B0=E6=8C=87=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/liteyuki_sign_status.py | 2 +- liteyuki/plugins/liteyuki_status/status.py | 10 +++------- liteyuki/plugins/liteyuki_weather/qweather.py | 1 - 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/liteyuki/plugins/liteyuki_sign_status.py b/liteyuki/plugins/liteyuki_sign_status.py index f682ca9b..e02dedfa 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 7478d125..e75205a2 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 91ace41e..426db650 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