mirror of https://github.com/Mai-with-u/MaiBot.git
增加调试输出
parent
290f76c152
commit
4de32f2b86
|
|
@ -750,7 +750,7 @@ class HeartFChatting:
|
|||
except Exception as e:
|
||||
logger.error(f"Error getting person names: {e}", exc_info=True)
|
||||
names_data = {} # 出错时置空
|
||||
|
||||
print(f"\n\nnames_data:\n{names_data}\n\n")
|
||||
|
||||
for user_id in user_ids_in_history:
|
||||
if user_id in names_data:
|
||||
|
|
|
|||
|
|
@ -440,7 +440,6 @@ class PromptBuilder:
|
|||
user_ids_in_context = set()
|
||||
if message_list_before_now:
|
||||
for msg in message_list_before_now:
|
||||
print(msg)
|
||||
sender_id = msg["user_info"].get('user_id')
|
||||
if sender_id:
|
||||
user_ids_in_context.add(str(sender_id))
|
||||
|
|
|
|||
Loading…
Reference in New Issue