feat(pterodactyl): allow disabling console commands from being sent through discord
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 2s
Actions / Build Documentation (MkDocs) (push) Successful in 28s

This commit is contained in:
SeaswimmerTheFsh 2024-03-21 15:27:29 -04:00
parent 39808f1766
commit 74f58162de
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
3 changed files with 36 additions and 2 deletions

View file

@ -7,6 +7,7 @@ def register_config(config_obj: Config) -> None:
base_url=None,
server_id=None,
console_channel=None,
console_commands_enabled=False,
current_status='',
chat_regex=r"^\[\d{2}:\d{2}:\d{2}\sINFO\]: (?!\[(?:Server|Rcon)\])(?:<|\[)(\w+)(?:>|\]) (.*)",
server_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]:(?: \[Not Secure\])? \[(?:Server|Rcon)\] (.*)",