fix(pterodactyl): forgot two!
This commit is contained in:
parent
13dba790b7
commit
85d5316f43
1 changed files with 0 additions and 2 deletions
|
@ -156,13 +156,11 @@ def remove_ansi_escape_codes(text: str) -> str:
|
||||||
return ansi_escape.sub('', text)
|
return ansi_escape.sub('', text)
|
||||||
|
|
||||||
async def check_if_server_message(text: str) -> Union[bool, str]:
|
async def check_if_server_message(text: str) -> Union[bool, str]:
|
||||||
logger.debug("Checking if message is a server message")
|
|
||||||
regex = await config.server_regex()
|
regex = await config.server_regex()
|
||||||
match: Optional[re.Match[str]] = re.match(regex, text)
|
match: Optional[re.Match[str]] = re.match(regex, text)
|
||||||
if match:
|
if match:
|
||||||
logger.debug("Message is a server message")
|
logger.debug("Message is a server message")
|
||||||
return match.group(1)
|
return match.group(1)
|
||||||
logger.debug("Message is not a server message")
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
async def check_if_chat_message(text: str) -> Union[bool, dict]:
|
async def check_if_chat_message(text: str) -> Union[bool, dict]:
|
||||||
|
|
Loading…
Reference in a new issue