(enabled)
| 14 | } |
| 15 | |
| 16 | function writeState(enabled) { |
| 17 | try { |
| 18 | if (!fs.existsSync('./data')) fs.mkdirSync('./data', { recursive: true }); |
| 19 | fs.writeFileSync(ANTICALL_PATH, JSON.stringify({ enabled: !!enabled }, null, 2)); |
| 20 | } catch {} |
| 21 | } |
| 22 | |
| 23 | async function anticallCommand(sock, chatId, message, args) { |
| 24 | const state = readState(); |