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: