MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / saveStickerCommands

Function saveStickerCommands

plugins/delcmd.js:28–39  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

26 }
27}
28async function saveStickerCommands(data) {
29 if (HAS_DB) {
30 await store.saveSetting('global', 'stickerCommands', data);
31 }
32 else {
33 const dir = path.dirname(STICKER_FILE);
34 if (!fs.existsSync(dir)) {
35 fs.mkdirSync(dir, { recursive: true });
36 }
37 fs.writeFileSync(STICKER_FILE, JSON.stringify(data, null, 2));
38 }
39}
40export default {
41 command: 'delcmd',
42 aliases: ['removecmd'],

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected