fix regex hopefully
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 5s
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 5s
This commit is contained in:
@ -44,7 +44,7 @@ class GarfbotRespond:
|
|||||||
|
|
||||||
logger.info(message.content)
|
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:
|
if match:
|
||||||
trigger = match.group(1)
|
trigger = match.group(1)
|
||||||
response_text = match.group(2)
|
response_text = match.group(2)
|
||||||
@ -58,7 +58,7 @@ class GarfbotRespond:
|
|||||||
await self.add_response(message, guild_id, trigger, response_text)
|
await self.add_response(message, guild_id, trigger, response_text)
|
||||||
return
|
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:
|
if match:
|
||||||
trigger = match.group(1).strip()
|
trigger = match.group(1).strip()
|
||||||
await self.remove_response(message, guild_id, trigger)
|
await self.remove_response(message, guild_id, trigger)
|
||||||
|
Reference in New Issue
Block a user