From 9e917244b1b7fd4034e6292f092e174f687a59fd Mon Sep 17 00:00:00 2001 From: afolivieri Date: Mon, 14 Oct 2024 11:26:31 +0300 Subject: [PATCH] Updated regex to fit better pattern matching as intended --- streaming_overseer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streaming_overseer.py b/streaming_overseer.py index 91fe410..3ef1db5 100644 --- a/streaming_overseer.py +++ b/streaming_overseer.py @@ -158,7 +158,7 @@ async def main(): contexts.append(f"{word_escaped}: {context}") contexts_str = ";\n".join(contexts) context_label = "First three different match contexts" - message_text = f"SCRIPT Keyword Match from {event.chat.title}: {matched_words_str}" + message_text = f"Keyword Match from {event.chat.title}: {matched_words_str}" if contexts: message_text += f"\n{context_label}:\n{contexts_str}" else: @@ -166,7 +166,7 @@ async def main(): await client.send_message(channel_id, message_text) await asyncio.sleep(0.1) - #await event.message.forward_to(channel_id) + await event.message.forward_to(channel_id) await asyncio.sleep(0.5) print(f'Forwarded Message: {message_content}') except Exception as e: