#cmdm cool command manager.
cmdm will allow you to lead commands.
First, connect the module.
const cmdm = ;
Next, connect the folder with commands. I created a "cmds" folder in the project folder.
cmdm;
I created the file " calc.js "in the" cmds " folder. P.S. if you need to pass arguments to the command, create the exported function "run". My code is from " calc.js":
moduleexports { console;};
You can now add a command.
cmdm;//cmdm.load(command name, type of access, type of command);
You can now create a function to run the command.
const xRun = { const cmd = cmdm; ifcmdaccess == 'public' ifcmdtype == 'console' cmdm; ; ;};;
If you did everything correctly then in the console you will get "16".