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

Function loadAntilienData

lib/antilien.js:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5// Load data from JSON file
6function loadAntilienData() {
7 try {
8 const data = fs.readFileSync(filePath, 'utf8');
9 return JSON.parse(data);
10 } catch (err) {
11 return {}; // If file doesn't exist, start with an empty object
12 }
13}
14
15// Save data to JSON file
16function saveAntilienData(data) {

Callers 1

antilien.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected