fix:小bug
This commit is contained in:
@@ -263,9 +263,9 @@ class PromptBuilder:
|
|||||||
relation_prompt = ""
|
relation_prompt = ""
|
||||||
for person in who_chat_in_group:
|
for person in who_chat_in_group:
|
||||||
relation_prompt += await relationship_manager.build_relationship_info(person)
|
relation_prompt += await relationship_manager.build_relationship_info(person)
|
||||||
print(f"relation_prompt: {relation_prompt}")
|
# print(f"relation_prompt: {relation_prompt}")
|
||||||
|
|
||||||
print(f"relat11111111ion_prompt: {relation_prompt}")
|
# print(f"relat11111111ion_prompt: {relation_prompt}")
|
||||||
|
|
||||||
# 心情
|
# 心情
|
||||||
mood_manager = MoodManager.get_instance()
|
mood_manager = MoodManager.get_instance()
|
||||||
|
|||||||
@@ -64,6 +64,9 @@ class ClassicalWillingManager(BaseWillingManager):
|
|||||||
self.chat_reply_willing[chat_id] = max(0, current_willing - 1.8)
|
self.chat_reply_willing[chat_id] = max(0, current_willing - 1.8)
|
||||||
|
|
||||||
async def after_generate_reply_handle(self, message_id):
|
async def after_generate_reply_handle(self, message_id):
|
||||||
|
if message_id not in self.ongoing_messages:
|
||||||
|
return
|
||||||
|
|
||||||
chat_id = self.ongoing_messages[message_id].chat_id
|
chat_id = self.ongoing_messages[message_id].chat_id
|
||||||
current_willing = self.chat_reply_willing.get(chat_id, 0)
|
current_willing = self.chat_reply_willing.get(chat_id, 0)
|
||||||
if current_willing < 1:
|
if current_willing < 1:
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class BaseWillingManager(ABC):
|
|||||||
def delete(self, message_id: str):
|
def delete(self, message_id: str):
|
||||||
del_message = self.ongoing_messages.pop(message_id, None)
|
del_message = self.ongoing_messages.pop(message_id, None)
|
||||||
if not del_message:
|
if not del_message:
|
||||||
logger.debug(f"删除异常,当前消息{message_id}不存在")
|
logger.debug(f"尝试删除不存在的消息 ID: {message_id},可能已被其他流程处理,喵~")
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def async_task_starter(self) -> None:
|
async def async_task_starter(self) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user