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

Method saveConfig

search/search.ts:74–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 private async saveConfig() {
75 try {
76 await fs.mkdir(path.dirname(CONFIG_FILE_PATH), { recursive: true });
77 await fs.writeFile(CONFIG_FILE_PATH, JSON.stringify(this.config, null, 2));
78 } catch (error) {
79 console.error("保存配置失败:", error);
80 }
81 }
82
83 private async discoverLinkedGroup(channel: Api.Channel): Promise<string | undefined> {
84 try {

Callers 5

handleAddMethod · 0.95
handleDeleteMethod · 0.95
handleDefaultMethod · 0.95
handleAdMethod · 0.95
findAndSendVideoMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected