From e22b44ff073dc60bbfad799bb09e213325cd9d50 Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Sat, 4 Apr 2026 21:30:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BE=A4=E8=B5=9B=E9=A9=AC):=20=E9=99=8D?= =?UTF-8?q?=E4=BD=8E=E6=B5=8B=E8=AF=95=E5=91=BD=E4=BB=A4=E4=BC=98=E5=85=88?= =?UTF-8?q?=E7=BA=A7=E5=B9=B6=E6=B7=BB=E5=8A=A0=E7=A1=AE=E8=AE=A4=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将测试模拟赛马命令的优先级从5调整为1,以避免与正式命令冲突。 在执行测试模拟前发送确认消息,明确告知用户此为无副作用的完全模拟。 --- danding_bot/plugins/group_horse_racing/test_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/danding_bot/plugins/group_horse_racing/test_commands.py b/danding_bot/plugins/group_horse_racing/test_commands.py index 3262d0b..fb6a69b 100644 --- a/danding_bot/plugins/group_horse_racing/test_commands.py +++ b/danding_bot/plugins/group_horse_racing/test_commands.py @@ -133,7 +133,7 @@ def _generate_random_horse_names(count: int) -> list[str]: return list(names)[:count] -test_simulate_race_cmd = on_command("测试模拟赛马", aliases={"测试模拟"}, priority=5, block=True) +test_simulate_race_cmd = on_command("测试模拟赛马", aliases={"测试模拟"}, priority=1, block=True) class _FakeBot: @@ -201,6 +201,8 @@ async def handle_test_simulate_race(bot: Bot, event: Event): await test_simulate_race_cmd.finish("权限不足") return + await test_simulate_race_cmd.send("收到:测试模拟赛马,开始执行完全模拟(无真实积分/数据库副作用)") + scope = get_scope(event) lock = room_store.get_lock(scope)