MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MDX / resetStats

Method resetStats

lib/commandHandler.ts:214–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 }
213
214 resetStats() {
215 this.stats.clear();
216 this.cooldowns.clear();
217 for (const cmd of this.commands.keys()) {
218 this.stats.set(cmd, { calls: 0, errors: 0, totalTime: 0n, avgMs: 0 });
219 }
220 }
221
222 async reloadCommands() {
223 this.commands.clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected