From aca33820fc82dd36cdb20ec457f91516cdd19dce Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Mon, 6 Apr 2026 23:14:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BE=A4=E8=B5=9B=E9=A9=AC):=20=E5=B0=86?= =?UTF-8?q?=E6=AF=94=E8=B5=9B=E5=BC=80=E5=A7=8B=E6=B6=88=E6=81=AF=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=96=B9=E5=BC=8F=E4=BB=8Efinish=E6=94=B9=E4=B8=BAsen?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 避免使用finish导致命令执行提前结束,确保后续异步比赛任务能正常执行 --- danding_bot/plugins/group_horse_racing/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danding_bot/plugins/group_horse_racing/commands.py b/danding_bot/plugins/group_horse_racing/commands.py index 67d57a1..f4e3890 100644 --- a/danding_bot/plugins/group_horse_racing/commands.py +++ b/danding_bot/plugins/group_horse_racing/commands.py @@ -518,7 +518,7 @@ async def handle_start(bot: Bot, event: Event): for horse in room.horses.values(): horse.state = HorseState.RACING - await start_cmd.finish("比赛开始!") + await start_cmd.send("比赛开始!") # Run race in background (outside command handler) task = asyncio.create_task(run_race_with_settlement(bot, room, scope))