(jid)
| 26 | |
| 27 | // Function to check if a group is sudo (authorized) |
| 28 | async 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 |
| 41 | async function addSudoNumber(jid) { |