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

Function loadStickcmdData

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

Source from the content-addressed store, hash-verified

6
7// Load data from the JSON file
8function loadStickcmdData() {
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 saveStickcmdData(data) {

Callers 5

addstickcmdFunction · 0.85
inStickCmdFunction · 0.85
deleteCmdFunction · 0.85
getCmdByIdFunction · 0.85
getAllStickCmdsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected