修复:group_horse_racing 测试命令权限检查

- 修复 check_tester() 函数未检查 TEST_MODE 状态的问题
- 现在测试命令会正确验证 TEST_MODE 是否启用
- 确保只有在测试模式下且用户在 TESTERS 列表中才能执行测试命令

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 22:37:33 +08:00
parent 6eed4bf3a2
commit 21a936fee6

View File

@@ -11,6 +11,8 @@ config = Config()
async def check_tester(event: Event) -> bool: async def check_tester(event: Event) -> bool:
"""Check if user is a tester.""" """Check if user is a tester."""
if not config.TEST_MODE:
return False
return event.user_id in config.TESTERS return event.user_id in config.TESTERS