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

Function loadOnlyAdminData

lib/onlyAdmin.js:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5// Load data from JSON file
6function loadOnlyAdminData() {
7 try {
8 const data = fs.readFileSync(filePath, 'utf8');
9 return new Set(JSON.parse(data));
10 } catch (err) {
11 return new Set(); // If file doesn't exist, start with an empty set
12 }
13}
14
15// Save data to JSON file
16function saveOnlyAdminData(data) {

Callers 1

onlyAdmin.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected