(groupId)
| 417 | } |
| 418 | |
| 419 | async 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 | |
| 433 | module.exports = { |
| 434 | // ... existing exports |
nothing calls this directly
no test coverage detected