From cb8af1412baf37e3eddc5b99be6e074a595a63fc Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sun, 19 Mar 2023 21:37:45 -0600 Subject: [PATCH] test --- matrix_gpt/bot/chat_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix_gpt/bot/chat_functions.py b/matrix_gpt/bot/chat_functions.py index 72774d9..1ef83b2 100644 --- a/matrix_gpt/bot/chat_functions.py +++ b/matrix_gpt/bot/chat_functions.py @@ -114,6 +114,7 @@ def is_thread(event: RoomMessageText): async def is_this_our_thread(client: AsyncClient, room: MatrixRoom, event: RoomMessageText, command_flag: str): base_event_id = event.source['content'].get('m.relates_to', {}).get('event_id') + print(base_event_id) if base_event_id: logging.debug((await client.room_get_event(room.room_id, base_event_id)).event.body) return (await client.room_get_event(room.room_id, base_event_id)).event.body.startswith(f'{command_flag} ')