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

Function issudo

lib/sudo.js:28–38  ·  view source on GitHub ↗
(jid)

Source from the content-addressed store, hash-verified

26
27// Function to check if a group is sudo (authorized)
28async function issudo(jid) {
29 try {
30 const data = loadSudoData();
31
32 // Check if the jid exists in the sudo data
33 return data[jid] ? true : false;
34 } catch (error) {
35 console.error("Error checking if the group is sudo:", error);
36 return false;
37 }
38}
39
40// Function to add a sudo number (jid) to the list
41async function addSudoNumber(jid) {

Callers 1

6b.jsFile · 0.85

Calls 1

loadSudoDataFunction · 0.85

Tested by

no test coverage detected