fix(群赛马): 将比赛开始消息发送方式从finish改为send

避免使用finish导致命令执行提前结束,确保后续异步比赛任务能正常执行
This commit is contained in:
2026-04-06 23:14:20 +08:00
parent 5e0d397843
commit aca33820fc

View File

@@ -518,7 +518,7 @@ async def handle_start(bot: Bot, event: Event):
for horse in room.horses.values(): for horse in room.horses.values():
horse.state = HorseState.RACING horse.state = HorseState.RACING
await start_cmd.finish("比赛开始!") await start_cmd.send("比赛开始!")
# Run race in background (outside command handler) # Run race in background (outside command handler)
task = asyncio.create_task(run_race_with_settlement(bot, room, scope)) task = asyncio.create_task(run_race_with_settlement(bot, room, scope))