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

Function writeDataToFile

lib/antibot.js:20–26  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

18
19// Function to write data to JSON file
20function writeDataToFile(data) {
21 try {
22 fs.writeFileSync(dataFilePath, JSON.stringify(data, null, 2), 'utf-8');
23 } catch (error) {
24 console.error('Error writing data to file:', error);
25 }
26}
27
28// Function to create initial structure if file does not exist
29function initializeDataFile() {

Callers 3

initializeDataFileFunction · 0.85
addOrUpdateJidStateFunction · 0.85
updateJidActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected