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

Method resetStats

lib/commandHandler.js:183–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 })).sort((a, b) => b.usage - a.usage);
182 }
183 resetStats() {
184 this.stats.clear();
185 this.cooldowns.clear();
186 for (const cmd of this.commands.keys()) {
187 this.stats.set(cmd, { calls: 0, errors: 0, totalTime: 0n, avgMs: 0 });
188 }
189 }
190 async reloadCommands() {
191 this.commands.clear();
192 this.aliases.clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected