fix(pterodactyl): check if server message is from Server or Rcon before sending to chat channel
This commit is contained in:
parent
8fdf9eb239
commit
26e5bd9129
2 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ This regex pattern is used to detect whenever a server message is sent. You will
|
||||||
Default value:
|
Default value:
|
||||||
|
|
||||||
```re
|
```re
|
||||||
^\[\d{2}:\d{2}:\d{2} INFO\]:( \[Not Secure\])? \[.*\] (.*)
|
^\[\d{2}:\d{2}:\d{2} INFO\]:( \[Not Secure\])? \[?:(Server|Rcon)\] (.*)
|
||||||
```
|
```
|
||||||
|
|
||||||
## `serverid`
|
## `serverid`
|
||||||
|
|
|
@ -11,7 +11,7 @@ def register_config(config_obj: Config) -> None:
|
||||||
startup_arguments=None,
|
startup_arguments=None,
|
||||||
current_status='',
|
current_status='',
|
||||||
chat_regex=r"\[(\d{2}:\d{2}:\d{2})\sINFO\]:\s<(\w+)>\s(.*)",
|
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_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$",
|
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$",
|
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) \[(.*)\]$",
|
achievement_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]: (.*) has (made the advancement|completed the challenge) \[(.*)\]$",
|
||||||
|
|
Loading…
Reference in a new issue