fix:麦麦会在no-reply后等待新消息

This commit is contained in:
SengokuCola
2025-04-20 17:24:51 +08:00
parent 04a1879170
commit ed21af9dba
4 changed files with 69 additions and 15 deletions

View File

@@ -244,13 +244,9 @@ class MessageProcessBase(Message):
# time_str = time.strftime("%m-%d %H:%M:%S", time.localtime(self.message_info.time))
timestamp = self.message_info.time
user_info = self.message_info.user_info
# name = (
# f"{user_info.user_nickname}(ta的昵称:{user_info.user_cardname},ta的id:{user_info.user_id})"
# if user_info.user_cardname != None
# else f"{user_info.user_nickname}(ta的id:{user_info.user_id})"
# )
name = f"<{self.message_info.platform}:{user_info.user_id}:{user_info.user_nickname}:{user_info.user_cardname}>"
return f"[{timestamp}] {name}: {self.processed_plain_text}\n"
return f"[{timestamp}]{name} 说:{self.processed_plain_text}\n"
@dataclass