Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
This commit is contained in:
@@ -91,7 +91,8 @@ class ChatBot:
|
|||||||
|
|
||||||
if global_config.enable_pfc_chatting:
|
if global_config.enable_pfc_chatting:
|
||||||
try:
|
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
|
userinfo = message.message_info.user_info
|
||||||
messageinfo = message.message_info
|
messageinfo = message.message_info
|
||||||
# 创建聊天流
|
# 创建聊天流
|
||||||
@@ -116,7 +117,8 @@ class ChatBot:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"处理PFC消息失败: {e}")
|
logger.error(f"处理PFC消息失败: {e}")
|
||||||
else:
|
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)
|
# await self._handle_private_chat(message)
|
||||||
if global_config.response_mode == "heart_flow":
|
if global_config.response_mode == "heart_flow":
|
||||||
|
|||||||
Reference in New Issue
Block a user