Add Pterodactyl cog #19

Merged
cswimr merged 139 commits from pterodactyl into main 2024-03-02 00:07:42 -05:00
Showing only changes of commit 97213a5025 - Show all commits

View file

@ -121,8 +121,11 @@ class Pterodactyl(commands.Cog):
regex = await self.config.chat_regex() regex = await self.config.chat_regex()
self.logger.debug(regex) self.logger.debug(regex)
self.logger.debug('1') self.logger.debug('1')
self.logger.debug(re.match(regex, text)) try:
match: Optional[re.Match[str]] = re.match(regex, text) match: Optional[re.Match[str]] = re.match(regex, text)
except Exception:
self.logger.exception("1.5")
raise
self.logger.debug('2') self.logger.debug('2')
if match: if match:
self.logger.debug('3') self.logger.debug('3')