feat:以巧妙地方式表达人格

This commit is contained in:
SengokuCola
2025-05-12 23:53:24 +08:00
parent bb043afaa2
commit 58afe99585
5 changed files with 14 additions and 6 deletions

View File

@@ -247,12 +247,12 @@ async def _build_readable_messages_internal(
last_end = m.end()
new_content += content[last_end:]
content = new_content
target_str = "这是QQ的一个功能用于提及某人但没那么明显"
if target_str in content:
if random.random() < 0.6:
content = content.replace(target_str, "")
if content != "":
message_details_raw.append((timestamp, person_name, content))