(userId)
| 176 | |
| 177 | // Add sudo check function |
| 178 | async function isSudo(userId) { |
| 179 | try { |
| 180 | const data = loadUserGroupData(); |
| 181 | return data.sudo && data.sudo.includes(userId); |
| 182 | } catch (error) { |
| 183 | console.error('Error checking sudo:', error); |
| 184 | return false; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // Manage sudo users |
| 189 | async function addSudo(userJid) { |
no test coverage detected