(jid)
| 325 | } |
| 326 | |
| 327 | async function getGoodbye(jid) { |
| 328 | try { |
| 329 | const data = loadUserGroupData(); |
| 330 | return data.goodbye && data.goodbye[jid] ? data.goodbye[jid].message : null; |
| 331 | } catch (error) { |
| 332 | console.error('Error in getGoodbye:', error); |
| 333 | return null; |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | // Add these functions to your existing SQL helper file |
| 338 | async function setAntiBadword(groupId, type, action) { |
no test coverage detected