MCPcopy Create free account
hub / github.com/Xchristech2/Zenitsu-Bot / removeChatbot

Function removeChatbot

lib/index.js:419–431  ·  view source on GitHub ↗
(groupId)

Source from the content-addressed store, hash-verified

417}
418
419async function removeChatbot(groupId) {
420 try {
421 const data = loadUserGroupData();
422 if (data.chatbot && data.chatbot[groupId]) {
423 delete data.chatbot[groupId];
424 saveUserGroupData(data);
425 }
426 return true;
427 } catch (error) {
428 console.error('Error removing chatbot:', error);
429 return false;
430 }
431}
432
433module.exports = {
434 // ... existing exports

Callers

nothing calls this directly

Calls 2

loadUserGroupDataFunction · 0.70
saveUserGroupDataFunction · 0.70

Tested by

no test coverage detected