Remove dead code, fix cvar argument type and add player name helper

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
Debian
2026-09-13 14:00:13 +02:00
co-authored by Sisyphus
parent e47badb7b3
commit 5b90d66276
3 changed files with 7 additions and 14 deletions
+3 -2
View File
@@ -4,6 +4,8 @@ Quake Live console variables (cvars) database
Common cvars for autocomplete and fuzzy search
"""
import re
# Server configuration
SERVER_CVARS = [
'sv_hostname',
@@ -329,7 +331,7 @@ COMMAND_ARGUMENTS = {
{'type': 'botname', 'required': True},
{'type': 'skill', 'required': False},
{'type': 'team', 'required': False},
{'type': 'msec delay number', 'required': False}, # msec delay
{'type': 'number', 'required': False}, # msec delay
{'type': 'freetext', 'required': False}, # altname
],
'removebot': [
@@ -541,7 +543,6 @@ def parse_signature(signature):
Example:
'<botname> [skill 1-5] [team]' -> ['<botname>', '[skill 1-5]', '[team]']
"""
import re
# Match <arg> or [arg] patterns, including content with spaces
pattern = r'(<[^>]+>|\[[^\]]+\])'
args = re.findall(pattern, signature)