(jid, row)
| 47 | |
| 48 | // Function to retrieve event data for a user (jid) and specified row |
| 49 | async function recupevents(jid, row) { |
| 50 | try { |
| 51 | const data = loadEventData(); |
| 52 | |
| 53 | // Return the value of the specified row for the given jid, or 'non' if not found |
| 54 | if (data[jid] && data[jid][row] !== undefined) { |
| 55 | return data[jid][row]; |
| 56 | } else { |
| 57 | return 'non'; |
| 58 | } |
| 59 | } catch (error) { |
| 60 | console.error("Erreur lors de la récupération des événements :", error); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | module.exports = { |
| 65 | attribuerUnevaleur, |
nothing calls this directly
no test coverage detected