MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / loadConfig

Method loadConfig

search/search.ts:64–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 private async loadConfig() {
65 try {
66 await fs.access(CONFIG_FILE_PATH);
67 const data = await fs.readFile(CONFIG_FILE_PATH, "utf-8");
68 this.config = { ...this.config, ...JSON.parse(data) };
69 } catch (error) {
70 console.log("未找到搜索配置,使用默认配置。");
71 }
72 }
73
74 private async saveConfig() {
75 try {

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected