This commit is contained in:
parent
4226ce86c8
commit
49831aeb47
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user