ruff fix但指定了--unsafe-fixes

This commit is contained in:
minecraft1024a
2025-10-05 21:48:32 +08:00
parent 0b4e1f5b7b
commit 9d705463ce
76 changed files with 300 additions and 315 deletions

View File

@@ -316,7 +316,7 @@ class PlusCommand(ABC):
str: 正则表达式字符串
"""
# 获取所有可能的命令名(主命令名 + 别名)
all_commands = [cls.command_name] + getattr(cls, "command_aliases", [])
all_commands = [cls.command_name, *getattr(cls, "command_aliases", [])]
# 转义特殊字符并创建选择组
escaped_commands = [re.escape(cmd) for cmd in all_commands]