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

Function initConfig

commands/autotyping.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 autotyping feature
22async function autotypingCommand(sock, chatId, message) {

Callers 2

autotypingCommandFunction · 0.70
isAutotypingEnabledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected