添加热重载,优化readme

This commit is contained in:
2026-01-01 20:14:45 +08:00
parent 3ba15d38f9
commit dc5fc265f1
5 changed files with 103 additions and 7 deletions

View File

@@ -23,3 +23,18 @@ async def handle_echo(bot: Bot, event: MessageEvent, args: list[str]):
reply_msg = " ".join(args)
await event.reply(reply_msg)
@matcher.command("poke")
async def handle_poke(bot: Bot, event: MessageEvent, args: list[str]):
"""
处理 echo 指令,原样回复用户输入的内容
:param bot: Bot 实例
:param event: 消息事件对象
:param args: 指令参数列表
"""
await bot.call_api("group_poke", {
"group_id": event.group_id,
"user_id": event.user_id
})