()
| 12 | |
| 13 | // Initialize configuration file if it doesn't exist |
| 14 | function initConfig() { |
| 15 | if (!fs.existsSync(configPath)) { |
| 16 | fs.writeFileSync(configPath, JSON.stringify({ enabled: false }, null, 2)); |
| 17 | } |
| 18 | return JSON.parse(fs.readFileSync(configPath)); |
| 19 | } |
| 20 | |
| 21 | // Toggle autoread feature |
| 22 | async function autoreadCommand(sock, chatId, message) { |
no outgoing calls
no test coverage detected