This commit is contained in:
@ -154,7 +154,7 @@ async def on_message(message):
|
|||||||
content_lower = content.lower()
|
content_lower = content.lower()
|
||||||
responses = garf_respond.get_responses(guild_id)
|
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)
|
await garf_respond.garfbot_response(message, content)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -43,6 +43,8 @@ class GarfbotRespond:
|
|||||||
async def garfbot_response(self, message, content):
|
async def garfbot_response(self, message, content):
|
||||||
guild_id = message.guild.id
|
guild_id = message.guild.id
|
||||||
|
|
||||||
|
logger.info(content)
|
||||||
|
|
||||||
add_pattern = r'garfbot\s+response\s+add\s+["\']([^"\']+)["\']\s+["\']([^"\']+)["\']'
|
add_pattern = r'garfbot\s+response\s+add\s+["\']([^"\']+)["\']\s+["\']([^"\']+)["\']'
|
||||||
add_match = re.search(add_pattern, content, re.IGNORECASE)
|
add_match = re.search(add_pattern, content, re.IGNORECASE)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user