fix(pterodactyl): reverted previous commit
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 18s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s

This commit is contained in:
Seaswimmer 2024-02-29 20:45:31 -05:00
parent 2fb201a9cb
commit 579855af02
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -119,11 +119,11 @@ class Pterodactyl(commands.Cog):
self.logger.debug("Checking if message is a chat message") self.logger.debug("Checking if message is a chat message")
regex = await self.config.chat_regex() regex = await self.config.chat_regex()
self.logger.debug('1') self.logger.debug('1')
regex_match: Optional[re.Match[str]] = re.match(regex, text) match: Optional[re.Match[str]] = re.match(regex, text)
self.logger.debug('2') self.logger.debug('2')
if regex_match: if match:
self.logger.debug('3') self.logger.debug('3')
dict = {"time": regex_match.group(1), "username": regex_match.group(2), "message": regex_match.group(3)} dict = {"time": match.group(1), "username": match.group(2), "message": match.group(3)}
self.logger.debug('4') self.logger.debug('4')
self.logger.debug("Message is a chat message\n%s", json.dumps(dict)) self.logger.debug("Message is a chat message\n%s", json.dumps(dict))
self.logger.debug('5') self.logger.debug('5')