MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / clear

Method clear

src/bot/session-map.ts:38–42  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

36 }
37
38 async clear(key: string): Promise<void> {
39 await this.load();
40 delete this.map[key];
41 await fs.writeFile(this.file, JSON.stringify(this.map, null, 2)).catch(() => {});
42 }
43}

Callers 7

handleSlashCommandFunction · 0.45
resetMethod · 0.45
failAllPendingMethod · 0.45
stopAllMethod · 0.45
stopAllLiveFunction · 0.45
cleanupSyncFunction · 0.45
closeFunction · 0.45

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected