|
|
@ -58,6 +58,7 @@ function fetchCommand(input, commands, threshhold){
|
|
|
|
commands.fetchCommand = fetchCommand;
|
|
|
|
commands.fetchCommand = fetchCommand;
|
|
|
|
commands.getEditDistance = getEditDistance;
|
|
|
|
commands.getEditDistance = getEditDistance;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commands.projects = {}
|
|
|
|
fs.readdirSync('./projects').forEach((file) => {
|
|
|
|
fs.readdirSync('./projects').forEach((file) => {
|
|
|
|
let project = file.match(/^([a-z]*)\.js$/);
|
|
|
|
let project = file.match(/^([a-z]*)\.js$/);
|
|
|
|
if(!project) {
|
|
|
|
if(!project) {
|
|
|
@ -66,7 +67,7 @@ fs.readdirSync('./projects').forEach((file) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
project = project[1];
|
|
|
|
project = project[1];
|
|
|
|
|
|
|
|
|
|
|
|
commands[project] = require('./projects/' + file);
|
|
|
|
commands.projects[project] = require('./projects/' + file);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/* //Test code
|
|
|
|
/* //Test code
|
|
|
|