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

Function initializeDataFile

lib/antibot.js:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28// Function to create initial structure if file does not exist
29function initializeDataFile() {
30 if (!fs.existsSync(dataFilePath)) {
31 writeDataToFile({});
32 }
33}
34
35// Initialize data file if not present
36initializeDataFile();

Callers 1

antibot.jsFile · 0.85

Calls 1

writeDataToFileFunction · 0.85

Tested by

no test coverage detected