(jid)
| 26 | |
| 27 | // Function to add a user to the ban list |
| 28 | async function addUserToBanList(jid) { |
| 29 | try { |
| 30 | const data = loadBanUserData(); |
| 31 | data[jid] = true; // Add the user to the ban list |
| 32 | saveBanUserData(data); |
| 33 | console.log(`JID ${jid} added to the banned user list.`); |
| 34 | } catch (error) { |
| 35 | console.error("Error while adding the banned user:", error); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // Function to check if a user is banned |
| 40 | async function isUserBanned(jid) { |
no test coverage detected