fix regex hopefully
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 5s

This commit is contained in:
crate 2025-06-04 03:14:25 -05:00
parent d9ac0cc36e
commit 39b821ff7f

View File

@ -44,7 +44,7 @@ class GarfbotRespond:
logger.info(message.content)
match = re.search(r'garfbot response add "(.+?)" "(.+?)"', content, re.IGNORECASE)
match = re.search(r'garfbot response add "(.+)" "(.+)"', content, re.IGNORECASE)
if match:
trigger = match.group(1)
response_text = match.group(2)
@ -58,7 +58,7 @@ class GarfbotRespond:
await self.add_response(message, guild_id, trigger, response_text)
return
match = re.search(r'garfbot\s+response\s+remove\s+(\S+)', content, re.IGNORECASE)
match = re.search(r'garfbot\s+response\s+remove\s+(.+)', content, re.IGNORECASE)
if match:
trigger = match.group(1).strip()
await self.remove_response(message, guild_id, trigger)