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:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user