MCPcopy Create free account
hub / github.com/Slayer128/Carltech-Bot / recupevents

Function recupevents

lib/welcome.js:49–62  ·  view source on GitHub ↗
(jid, row)

Source from the content-addressed store, hash-verified

47
48// Function to retrieve event data for a user (jid) and specified row
49async 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
64module.exports = {
65 attribuerUnevaleur,

Callers

nothing calls this directly

Calls 1

loadEventDataFunction · 0.85

Tested by

no test coverage detected