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

Method reloadCommands

lib/commandHandler.js:190–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188 }
189 }
190 async reloadCommands() {
191 this.commands.clear();
192 this.aliases.clear();
193 this.categories.clear();
194 this.stats.clear();
195 this.cooldowns.clear();
196 this.disabledCommands.clear();
197 this.prefixlessCommands.clear();
198 await this.loadCommands();
199 }
200 getCommand(text, prefixes) {
201 const usedPrefix = prefixes.find(p => text.startsWith(p));
202 const firstWord = text.trim().split(' ')[0].toLowerCase();

Callers 2

handlerFunction · 0.80
handlerFunction · 0.80

Calls 1

loadCommandsMethod · 0.95

Tested by

no test coverage detected