response log
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 15s

This commit is contained in:
crate 2025-06-03 20:55:41 -05:00
parent 4226ce86c8
commit 49831aeb47
2 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,7 @@ async def on_message(message):
content_lower = content.lower()
responses = garf_respond.get_responses(guild_id)
if content.lower().startswith('garfbot response'):
if content_lower.startswith('garfbot response'):
await garf_respond.garfbot_response(message, content)
return

View File

@ -42,6 +42,8 @@ class GarfbotRespond:
async def garfbot_response(self, message, content):
guild_id = message.guild.id
logger.info(content)
add_pattern = r'garfbot\s+response\s+add\s+["\']([^"\']+)["\']\s+["\']([^"\']+)["\']'
add_match = re.search(add_pattern, content, re.IGNORECASE)