修复了没有改掉的typo字段

This commit is contained in:
Pliosauroidea
2025-03-11 21:08:19 +08:00
parent aea3bffd99
commit 3180426727

View File

@@ -103,10 +103,8 @@ class ChatBot:
group_info=group_info, group_info=group_info,
reply_message=event.reply, reply_message=event.reply,
platform="qq", platform="qq",
platform="qq",
) )
message_json = message_cq.to_dict() message_json = message_cq.to_dict()
message_json = message_cq.to_dict()
# 进入maimbot # 进入maimbot
message = MessageRecv(message_json) message = MessageRecv(message_json)
@@ -177,7 +175,6 @@ class ChatBot:
config=global_config, config=global_config,
is_emoji=message.is_emoji, is_emoji=message.is_emoji,
interested_rate=interested_rate, interested_rate=interested_rate,
interested_rate=interested_rate,
) )
current_willing = willing_manager.get_willing(chat_stream=chat) current_willing = willing_manager.get_willing(chat_stream=chat)
@@ -194,8 +191,8 @@ class ChatBot:
user_nickname=global_config.BOT_NICKNAME, user_nickname=global_config.BOT_NICKNAME,
platform=messageinfo.platform, platform=messageinfo.platform,
) )
tinking_time_point = round(time.time(), 2) thinking_time_point = round(time.time(), 2)
think_id = "mt" + str(tinking_time_point) think_id = "mt" + str(thinking_time_point)
thinking_message = MessageThinking( thinking_message = MessageThinking(
message_id=think_id, message_id=think_id,
chat_stream=chat, chat_stream=chat,
@@ -246,7 +243,7 @@ class ChatBot:
typing_time = calculate_typing_time(msg) typing_time = calculate_typing_time(msg)
print(f"typing_time: {typing_time}") print(f"typing_time: {typing_time}")
accu_typing_time += typing_time accu_typing_time += typing_time
timepoint = tinking_time_point + accu_typing_time timepoint = thinking_time_point + accu_typing_time
message_segment = Seg(type="text", data=msg) message_segment = Seg(type="text", data=msg)
print(f"message_segment: {message_segment}") print(f"message_segment: {message_segment}")
bot_message = MessageSending( bot_message = MessageSending(