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

Function getCronById

lib/cron.js:61–69  ·  view source on GitHub ↗
(group_id)

Source from the content-addressed store, hash-verified

59
60// Function to get a specific cron entry by group_id
61async function getCronById(group_id) {
62 try {
63 const data = loadCronData();
64 return data[group_id] || null;
65 } catch (error) {
66 console.error("Error while retrieving cron data by group_id:", error);
67 return null;
68 }
69}
70
71// Function to delete a cron entry by group_id
72async function delCron(group_id) {

Callers

nothing calls this directly

Calls 1

loadCronDataFunction · 0.85

Tested by

no test coverage detected