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

Function getDataFromAlive

lib/alive.js:39–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38// Function to get data from 'alive'
39async function getDataFromAlive() {
40 try {
41 const data = loadAliveData();
42 if (data.message && data.lien) {
43 return { message: data.message, lien: data.lien };
44 } else {
45 console.log("No data found in 'alive'.");
46 return null;
47 }
48 } catch (error) {
49 console.error("Error while retrieving data from 'alive':", error);
50 return null;
51 }
52}
53
54module.exports = {
55 addOrUpdateDataInAlive,

Callers

nothing calls this directly

Calls 1

loadAliveDataFunction · 0.85

Tested by

no test coverage detected