fix(pterodactyl): fixed broken regex
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 20s
Actions / Build Documentation (MkDocs) (push) Successful in 23s

This commit is contained in:
Seaswimmer 2024-03-02 12:40:25 -05:00
parent 26e5bd9129
commit 4c234502f7
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ This regex pattern is used to detect whenever a server message is sent. You will
Default value:
```re
^\[\d{2}:\d{2}:\d{2} INFO\]:( \[Not Secure\])? \[?:(Server|Rcon)\] (.*)
^\[\d{2}:\d{2}:\d{2} INFO\]:(?: \[Not Secure\])? \[(?:Server|Rcon)\] (.*)
```
## `serverid`

View file

@ -11,7 +11,7 @@ def register_config(config_obj: Config) -> None:
startup_arguments=None,
current_status='',
chat_regex=r"\[(\d{2}:\d{2}:\d{2})\sINFO\]:\s<(\w+)>\s(.*)",
server_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]:( \[Not Secure\])? \[?:(Server|Rcon)\] (.*)",
server_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]:(?: \[Not Secure\])? \[(?:Server|Rcon)\] (.*)",
join_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]: ([^<\n]+) joined the game$",
leave_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]: ([^<\n]+) left the game$",
achievement_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]: (.*) has (made the advancement|completed the challenge) \[(.*)\]$",