MCPcopy Index your code
hub / github.com/Slayer128/Carltech-Bot / loadCronData

Function loadCronData

lib/cron.js:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7// Load data from JSON file
8function loadCronData() {
9 try {
10 const data = fs.readFileSync(filePath, 'utf8');
11 return JSON.parse(data);
12 } catch (err) {
13 return {}; // Default if file doesn't exist
14 }
15}
16
17// Save data to JSON file
18function saveCronData(data) {

Callers 4

addCronFunction · 0.85
getCronFunction · 0.85
getCronByIdFunction · 0.85
delCronFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected