From eda932b4e9046b701a992ca19705cfe6664d11d1 Mon Sep 17 00:00:00 2001 From: jie65535 Date: Sun, 20 Jul 2025 11:27:31 +0800 Subject: [PATCH] Update memory structure --- src/main/kotlin/PluginData.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/PluginData.kt b/src/main/kotlin/PluginData.kt index 66781ec..ec526ad 100644 --- a/src/main/kotlin/PluginData.kt +++ b/src/main/kotlin/PluginData.kt @@ -15,9 +15,9 @@ object PluginData : AutoSavePluginData("data") { fun appendContactMemory(contactId: Long, newMemory: String) { val memory = contactMemory[contactId] if (memory.isNullOrEmpty()) { - contactMemory[contactId] = "* $newMemory" + contactMemory[contactId] = newMemory } else { - contactMemory[contactId] = "$memory\n* $newMemory" + contactMemory[contactId] = "$memory\n$newMemory" } } @@ -27,7 +27,7 @@ object PluginData : AutoSavePluginData("data") { fun replaceContactMemory(contactId: Long, oldMemory: String, newMemory: String) { val memory = contactMemory[contactId] if (memory.isNullOrEmpty()) { - contactMemory[contactId] = "* $newMemory" + contactMemory[contactId] = newMemory } else { contactMemory[contactId] = memory.replace(oldMemory, newMemory) }