mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-02-07 12:16:12 +08:00
重新触发pre-commit检查
This commit is contained in:
parent
19363b22ac
commit
b9983330ab
@ -1,9 +1,12 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from nonebot import require
|
from nonebot import require
|
||||||
|
|
||||||
require("nonebot_plugin_localstore")
|
require("nonebot_plugin_localstore")
|
||||||
from nonebot_plugin_localstore import get_plugin_data_file
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
from nonebot_plugin_localstore import get_plugin_data_file
|
||||||
|
|
||||||
from nonebot_plugin_marshoai.plugin import PluginMetadata, on_function_call
|
from nonebot_plugin_marshoai.plugin import PluginMetadata, on_function_call
|
||||||
from nonebot_plugin_marshoai.plugin.func_call.params import String
|
from nonebot_plugin_marshoai.plugin.func_call.params import String
|
||||||
|
|
||||||
@ -18,6 +21,7 @@ if not Path(memory_path).exists():
|
|||||||
with open(memory_path, "w", encoding="utf-8") as f:
|
with open(memory_path, "w", encoding="utf-8") as f:
|
||||||
json.dump({}, f, ensure_ascii=False, indent=4)
|
json.dump({}, f, ensure_ascii=False, indent=4)
|
||||||
print(memory_path)
|
print(memory_path)
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
@on_function_call(description="存储记忆内容").params(
|
@on_function_call(description="存储记忆内容").params(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user