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

Function saveConfig

speedlink/speedlink.ts:253–259  ·  view source on GitHub ↗
(config: any)

Source from the content-addressed store, hash-verified

251 }
252 return {};
253}
254
255function saveConfig(config: any): void {
256 try {
257 fs.writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2), 'utf-8');
258 } catch (e) {
259 console.error("Failed to save config:", e);
260 }
261}
262

Callers 1

speedtestFunction · 0.70

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected