mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 09:37:29 +08:00
15 lines
368 B
Python
15 lines
368 B
Python
|
from nonebot import require
|
||
|
|
||
|
require("nonebot_plugin_alconna")
|
||
|
from nonebot_plugin_alconna import on_alconna, Alconna, Subcommand, Args, MultiVar, Arparma
|
||
|
|
||
|
|
||
|
@on_alconna(
|
||
|
aliases={"天气"},
|
||
|
command=Alconna(
|
||
|
"weather",
|
||
|
Args["keywords", MultiVar(str)],
|
||
|
),
|
||
|
).handle()
|
||
|
async def _(result: Arparma):
|
||
|
"""await alconna.send("weather", city)"""
|