()
| 75 | |
| 76 | // Function to get all sudo numbers (jids) |
| 77 | async 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 |
| 90 | async function isSudoTableNotEmpty() { |
nothing calls this directly
no test coverage detected