From 21a936fee63200936fe0a46ea01ff9f44be2401a Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Fri, 3 Apr 2026 22:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9Agroup=5Fhorse=5Fraci?= =?UTF-8?q?ng=20=E6=B5=8B=E8=AF=95=E5=91=BD=E4=BB=A4=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 check_tester() 函数未检查 TEST_MODE 状态的问题 - 现在测试命令会正确验证 TEST_MODE 是否启用 - 确保只有在测试模式下且用户在 TESTERS 列表中才能执行测试命令 Co-Authored-By: Claude Opus 4.6 --- danding_bot/plugins/group_horse_racing/test_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/danding_bot/plugins/group_horse_racing/test_commands.py b/danding_bot/plugins/group_horse_racing/test_commands.py index bf59640..eb296c7 100644 --- a/danding_bot/plugins/group_horse_racing/test_commands.py +++ b/danding_bot/plugins/group_horse_racing/test_commands.py @@ -11,6 +11,8 @@ config = Config() async def check_tester(event: Event) -> bool: """Check if user is a tester.""" + if not config.TEST_MODE: + return False return event.user_id in config.TESTERS