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

Function loadSudoData

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

Source from the content-addressed store, hash-verified

6
7// Load data from the JSON file
8function loadSudoData() {
9 try {
10 const data = fs.readFileSync(filePath, 'utf8');
11 return JSON.parse(data);
12 } catch (err) {
13 return {}; // Return an empty object if the file doesn't exist or there's an error
14 }
15}
16
17// Save data to the JSON file
18function saveSudoData(data) {

Callers 5

issudoFunction · 0.85
addSudoNumberFunction · 0.85
removeSudoNumberFunction · 0.85
getAllSudoNumbersFunction · 0.85
isSudoTableNotEmptyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected