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

Function loadBanUserData

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

Source from the content-addressed store, hash-verified

6
7// Load data from JSON file
8function loadBanUserData() {
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 data to JSON file
18function saveBanUserData(data) {

Callers 3

addUserToBanListFunction · 0.85
isUserBannedFunction · 0.85
removeUserFromBanListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected