Update normal_chat.py

pull/978/head
SengokuCola 2025-05-17 12:26:10 +08:00
parent 8f7a8e6c22
commit 44266833e2
1 changed files with 4 additions and 3 deletions

View File

@ -201,9 +201,10 @@ class NormalChat:
break break
# 获取待处理消息列表 # 获取待处理消息列表
items_to_process = list(self.interest_dict.items()) if self.interest_dict:
if not items_to_process: items_to_process = list(self.interest_dict.items())
continue if not items_to_process:
continue
# 处理每条兴趣消息 # 处理每条兴趣消息
for msg_id, (message, interest_value, is_mentioned) in items_to_process: for msg_id, (message, interest_value, is_mentioned) in items_to_process: