(url, type, message)
| 26 | |
| 27 | // Function to add or update a group in the mention list |
| 28 | async 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 |
| 42 | async function updateStatusForMention(url, status) { |
nothing calls this directly
no test coverage detected