fix: 移除py命令的ADMIN权限限制并添加特定事件ID过滤

移除code_py.py中py命令的ADMIN权限限制,使其对所有用户可用
在jrcd.py中为handle_jrcd和handle_bbcd命令添加对特定事件ID(831797331)的过滤
This commit is contained in:
2026-01-24 20:50:52 +08:00
parent 8553c6797b
commit 351ed0b063
2 changed files with 7 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ def normalize_code(code: str) -> str:
return code.strip()
@matcher.command("py", "python", "code_py", permission=Permission.ADMIN)
@matcher.command("py", "python", "code_py")
async def code_py_main(event: MessageEvent, args: list[str]):
"""
/py 命令的主入口。