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

Function loadUserData

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

Source from the content-addressed store, hash-verified

6
7// Load user data from JSON file
8function loadUserData() {
9 try {
10 const data = fs.readFileSync(filePath, 'utf8');
11 return JSON.parse(data);
12 } catch (err) {
13 return {}; // Default if file doesn't exist
14 }
15}
16
17// Save user data to JSON file
18function saveUserData(data) {

Callers 3

getMessagesAndXPByJIDFunction · 0.85
getBottom10UsersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected