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

Function isSudoTableNotEmpty

lib/sudo.js:90–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89// Function to check if the sudo table is not empty
90async function isSudoTableNotEmpty() {
91 try {
92 const data = loadSudoData();
93 // Check if the sudo data contains any entries
94 return Object.keys(data).length > 0;
95 } catch (error) {
96 console.error("Error checking if the sudo table is empty:", error);
97 return false;
98 }
99}
100
101module.exports = {
102 issudo,

Callers

nothing calls this directly

Calls 1

loadSudoDataFunction · 0.85

Tested by

no test coverage detected