MCPcopy Create free account
hub / github.com/Slayer128/Carltech-Bot / saveAliveData

Function saveAliveData

lib/alive.js:16–18  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

14
15// Save data to JSON file
16function saveAliveData(data) {
17 fs.writeFileSync(filePath, JSON.stringify(data, null, 2));
18}
19
20// Create default data if not exists
21if (!fs.existsSync(filePath)) {

Callers 2

alive.jsFile · 0.85
addOrUpdateDataInAliveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected