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

Function addOrUpdateDataInAlive

lib/alive.js:26–36  ·  view source on GitHub ↗
(message, lien)

Source from the content-addressed store, hash-verified

24
25// Function to add or update data in 'alive'
26async function addOrUpdateDataInAlive(message, lien) {
27 try {
28 const data = loadAliveData();
29 data.message = message;
30 data.lien = lien;
31 saveAliveData(data);
32 console.log("Data successfully added or updated in 'alive'.");
33 } catch (error) {
34 console.error("Error while adding or updating data in 'alive':", error);
35 }
36}
37
38// Function to get data from 'alive'
39async function getDataFromAlive() {

Callers

nothing calls this directly

Calls 2

loadAliveDataFunction · 0.85
saveAliveDataFunction · 0.85

Tested by

no test coverage detected