|
@ -24,7 +24,7 @@ class Engine { |
|
|
this.modules.forEach((mod) => { |
|
|
this.modules.forEach((mod) => { |
|
|
logger.info("Loading module: %s", mod.name); |
|
|
logger.info("Loading module: %s", mod.name); |
|
|
initModule(mod); |
|
|
initModule(mod); |
|
|
console.log("Recognized commands: %s", mod.getRecognizedCommands()) |
|
|
|
|
|
|
|
|
logger.infog("Recognized commands: %s", mod.getRecognizedCommands()) |
|
|
this.moduleMap.set(mod.command, mod); |
|
|
this.moduleMap.set(mod.command, mod); |
|
|
this.commandMap.set(mod.command, mod); |
|
|
this.commandMap.set(mod.command, mod); |
|
|
this.commandRadixTree.addWord(mod.command); |
|
|
this.commandRadixTree.addWord(mod.command); |
|
|