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

Function getAllSudoNumbers

lib/sudo.js:77–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76// Function to get all sudo numbers (jids)
77async function getAllSudoNumbers() {
78 try {
79 const data = loadSudoData();
80
81 // Return an array of all the jids in the sudo list
82 return Object.keys(data);
83 } catch (error) {
84 console.error("Error retrieving the authorized phone numbers:", error);
85 return [];
86 }
87}
88
89// Function to check if the sudo table is not empty
90async function isSudoTableNotEmpty() {

Callers

nothing calls this directly

Calls 1

loadSudoDataFunction · 0.85

Tested by

no test coverage detected