forked from cswimr/SeaCogs
fix(pterodactyl): wooo more debug statements
This commit is contained in:
parent
72d8ff4782
commit
9106675276
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
|
|||
if json.loads(message)['event'] == 'console output' and await config.console_channel() is not None:
|
||||
msg = json.loads(message)['args'][0]
|
||||
regex_blacklist: dict = await config.regex_blacklist()
|
||||
for regex in regex_blacklist.values():
|
||||
logger.debug(regex)
|
||||
matches = [re.match(regex, msg) for regex in regex_blacklist.values()]
|
||||
|
||||
if await config.current_status() in ('running', 'offline', '') and not any(matches):
|
||||
|
|
Loading…
Reference in a new issue