1
0
forked from bot/app

feat: 重启时间显示

This commit is contained in:
2024-04-10 23:47:10 +08:00
parent db0542279b
commit 38f658edf9
6 changed files with 111 additions and 55 deletions

View File

@ -0,0 +1,15 @@
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)"""