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

Function getCron

lib/cron.js:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46// Function to get all cron entries
47async function getCron() {
48 try {
49 const data = loadCronData();
50 return Object.keys(data).map(group_id => ({
51 group_id,
52 ...data[group_id]
53 }));
54 } catch (error) {
55 console.error("Error while retrieving cron data:", error);
56 return [];
57 }
58}
59
60// Function to get a specific cron entry by group_id
61async function getCronById(group_id) {

Callers

nothing calls this directly

Calls 1

loadCronDataFunction · 0.85

Tested by

no test coverage detected