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

Function initConfig

commands/autoread.js:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13// Initialize configuration file if it doesn't exist
14function 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
22async function autoreadCommand(sock, chatId, message) {

Callers 2

autoreadCommandFunction · 0.70
isAutoreadEnabledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected