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

Function writeState

commands/anticall.js:16–21  ·  view source on GitHub ↗
(enabled)

Source from the content-addressed store, hash-verified

14}
15
16function 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
23async function anticallCommand(sock, chatId, message, args) {
24 const state = readState();

Callers 1

anticallCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected