فهرست منبع

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 سال پیش
والد
کامیت
e1782d1034
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  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,
 }