updated content match message with all possible matches and contextes

This commit is contained in:
afolivieri 2024-10-11 12:14:05 +03:00
parent 451412973c
commit 20c0e8b8d5

View File

@ -132,6 +132,8 @@ async def main():
context = message_content[start_pos:end_pos] context = message_content[start_pos:end_pos]
words.append(word) words.append(word)
contexts.append(context) contexts.append(context)
break
if words:
await client.send_message(channel_id, f"Keyword Match: {', '.join(words)}\nContext: {', '.join(contexts)}") await client.send_message(channel_id, f"Keyword Match: {', '.join(words)}\nContext: {', '.join(contexts)}")
await asyncio.sleep(0.1) await asyncio.sleep(0.1)
await event.message.forward_to(channel_id) await event.message.forward_to(channel_id)