(message, lien)
| 24 | |
| 25 | // Function to add or update data in 'alive' |
| 26 | async 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' |
| 39 | async function getDataFromAlive() { |
nothing calls this directly
no test coverage detected