fix: 移除py命令的ADMIN权限限制并添加特定事件ID过滤
移除code_py.py中py命令的ADMIN权限限制,使其对所有用户可用 在jrcd.py中为handle_jrcd和handle_bbcd命令添加对特定事件ID(831797331)的过滤
This commit is contained in:
@@ -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 命令的主入口。
|
||||
|
||||
Reference in New Issue
Block a user