From 9ba4f0cfa1c4af882b2957412ffd08a870d7ce75 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Tue, 24 Dec 2024 00:40:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=86=85=E5=AD=98=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=AF=BC=E5=85=A5=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/tools/marshoai_memory/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nonebot_plugin_marshoai/tools/marshoai_memory/__init__.py b/nonebot_plugin_marshoai/tools/marshoai_memory/__init__.py index 556b1c19..8967cbbc 100644 --- a/nonebot_plugin_marshoai/tools/marshoai_memory/__init__.py +++ b/nonebot_plugin_marshoai/tools/marshoai_memory/__init__.py @@ -1,10 +1,12 @@ from pathlib import Path + from nonebot import require require("nonebot_plugin_localstore") -from nonebot_plugin_localstore import get_data_file import json +from nonebot_plugin_localstore import get_data_file + memory_path = get_data_file("marshoai", "memory.json") if not Path(memory_path).exists(): with open(memory_path, "w", encoding="utf-8") as f: