fix(pterodactyl): try to match regex early for debugging
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 19s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s

This commit is contained in:
Seaswimmer 2024-02-29 21:08:50 -05:00
parent 502ffbee84
commit 925e402819
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -120,6 +120,7 @@ class Pterodactyl(commands.Cog):
regex = await self.config.chat_regex()
self.logger.debug(regex)
self.logger.debug('1')
self.logger.debug(re.match(regex, text))
match: Optional[re.Match[str]] = re.match(regex, text)
self.logger.debug('2')
if match: