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

Function addOrUpdateDataInMention

lib/mention.js:28–39  ·  view source on GitHub ↗
(url, type, message)

Source from the content-addressed store, hash-verified

26
27// Function to add or update a group in the mention list
28async function addOrUpdateDataInMention(url, type, message) {
29 try {
30 const data = loadMentionData();
31
32 // Add or update the group data
33 data[url] = { type, message };
34 saveMentionData(data);
35 console.log(`Data for URL ${url} has been added or updated in the mention list.`);
36 } catch (error) {
37 console.error("Error while adding or updating the data in the mention list:", error);
38 }
39}
40
41// Function to update the status of a mention
42async function updateStatusForMention(url, status) {

Callers

nothing calls this directly

Calls 2

loadMentionDataFunction · 0.85
saveMentionDataFunction · 0.85

Tested by

no test coverage detected