From 579855af0249c7efd52f88384295a30e9263cb81 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 20:45:31 -0500 Subject: [PATCH] fix(pterodactyl): reverted previous commit --- pterodactyl/pterodactyl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index f02eec8..aab394d 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -119,11 +119,11 @@ class Pterodactyl(commands.Cog): self.logger.debug("Checking if message is a chat message") regex = await self.config.chat_regex() 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') - if regex_match: + if match: 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("Message is a chat message\n%s", json.dumps(dict)) self.logger.debug('5')