fix(pterodactyl): try to match regex early for debugging

This commit is contained in:
Seaswimmer 2024-02-29 21:08:50 -05:00
parent 502ffbee84
commit 925e402819
Signed by untrusted user: 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: