Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Slayer128/Carltech-Bot
/ saveOnlyAdminData
Function
saveOnlyAdminData
lib/onlyAdmin.js:16–18 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
14
15
// Save data to JSON file
16
function
saveOnlyAdminData(data) {
17
fs.writeFileSync(filePath, JSON.stringify([...data], null, 2));
18
}
19
20
const
onlyAdminGroups = loadOnlyAdminData();
21
Callers
2
addGroupToOnlyAdminList
Function · 0.85
removeGroupFromOnlyAdminList
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected