From e13464cb7c369d3c45374a11e13854894c70e632 Mon Sep 17 00:00:00 2001 From: Expliyh Date: Mon, 20 May 2024 08:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E4=BA=86(=E5=B0=B4?= =?UTF-8?q?=E5=B0=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/liteyuki_weather/qweather.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liteyuki/plugins/liteyuki_weather/qweather.py b/liteyuki/plugins/liteyuki_weather/qweather.py index 08e6df6c..9b158b9e 100644 --- a/liteyuki/plugins/liteyuki_weather/qweather.py +++ b/liteyuki/plugins/liteyuki_weather/qweather.py @@ -16,7 +16,7 @@ from liteyuki.utils import event as event_utils require("nonebot_plugin_alconna") from nonebot_plugin_alconna import on_alconna, Alconna, Args, MultiVar, Arparma, UniMessage -wrx_alc = on_alconna( +wx_alc = on_alconna( aliases={"天气"}, command=Alconna( "weather", @@ -25,12 +25,12 @@ wrx_alc = on_alconna( ) -@wrx_alc.handle() +@wx_alc.handle() async def _(result: Arparma, event: T_MessageEvent, matcher: Matcher): """await alconna.send("weather", city)""" kws = result.main_args.get("keywords") image = await get_weather_now_card(matcher, event, kws) - await wrx_alc.finish(UniMessage.image(raw=image)) + await wx_alc.finish(UniMessage.image(raw=image)) @on_endswith(("天气", "weather")).handle()