修复未启用私信情况下收到私信报错的bug
This commit is contained in:
@@ -91,7 +91,8 @@ class ChatBot:
|
||||
|
||||
if global_config.enable_pfc_chatting:
|
||||
try:
|
||||
if groupinfo is None and global_config.enable_friend_chat:
|
||||
if groupinfo is None:
|
||||
if global_config.enable_friend_chat:
|
||||
userinfo = message.message_info.user_info
|
||||
messageinfo = message.message_info
|
||||
# 创建聊天流
|
||||
@@ -116,7 +117,8 @@ class ChatBot:
|
||||
except Exception as e:
|
||||
logger.error(f"处理PFC消息失败: {e}")
|
||||
else:
|
||||
if groupinfo is None and global_config.enable_friend_chat:
|
||||
if groupinfo is None:
|
||||
if global_config.enable_friend_chat:
|
||||
# 私聊处理流程
|
||||
# await self._handle_private_chat(message)
|
||||
if global_config.response_mode == "heart_flow":
|
||||
|
||||
Reference in New Issue
Block a user