Browse Source

Disable test and encryption callbacks

Temporarily commented out callbacks for test responses, event handling, and encrypted messages to focus on core functionality stabilization. This change aims to simplify the debugging process and enhance the reliability of active features during the development phase. Encryption handling will be reintroduced after refining base features.
Kumi 1 năm trước cách đây
mục cha
commit
e1782d1034
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/gptbot/callbacks/__init__.py

+ 3 - 3
src/gptbot/callbacks/__init__.py

@@ -21,16 +21,16 @@ from .keys import keys_query_callback
 from .test_response import test_response_callback
 
 RESPONSE_CALLBACKS = {
-    Response: test_response_callback,
+    #Response: test_response_callback,
     SyncResponse: sync_callback,
     JoinResponse: join_callback,
     #KeysQueryResponse: keys_query_callback,
 }
 
 EVENT_CALLBACKS = {
-    Event: test_callback,
+    #Event: test_callback,
     InviteEvent: room_invite_callback,
     RoomMessageText: message_callback,
     RoomMemberEvent: roommember_callback,
-    MegolmEvent: encrypted_message_callback,
+    #MegolmEvent: encrypted_message_callback,
 }