'use strict';
const fs = require('fs');
module.exports = function (gameServer, args) {
var walkSync = function(dir, filelist) {

  if( dir[dir.length-1] != '/') dir=dir.concat('/')

  var fs = fs || require('fs'),
      files = fs.readdirSync(dir);
  filelist = filelist || [];
  files.forEach(function(file) {
    if (fs.statSync(dir + file).isDirectory()) {
      filelist = walkSync(dir + file + '/', filelist);
    }
    else {
      filelist.push(dir+file);
    }
  });
  return filelist;
};
var result = [];
var files = walkSync("./");

for (var i in files) {
if (files[i].indexOf("/node_modules/") != -1 || files[i].indexOf("/plugins/") != -1) continue;
  var file = fs.readFileSync(files[i],"utf8");
var startindex = 0;
for (;1==1;) {
 var index = file.indexOf("console.log(\"", startindex) + 13;
var ind = file.indexOf("\");", index);
if (index == 12 || ind == -1) break;
startindex = ind;
var tx = file.substr(index, ind - index);
var split = tx.split("\n");
if (split[1]) continue;

for (;1==1;) {
 var n = tx.indexOf("\"") + 1;
 var c = tx.indexOf("\"",n);
 if (n == 0 || c == -1) break;
 tx = tx.replace(tx.slice(n,c),"");
}
result.push(tx);
}
}
var final = "";
for (var i in result) {
  final = final + result[i] + "\n";
}
fs.writeFileSync("console.txt",final);
}

'use strict';
const fs = require('fs');
module.exports = function (gameServer, args) {
var walkSync = function(dir, filelist) {

  if( dir[dir.length-1] != '/') dir=dir.concat('/')

  var fs = fs || require('fs'),
      files = fs.readdirSync(dir);
  filelist = filelist || [];
  files.forEach(function(file) {
    if (fs.statSync(dir + file).isDirectory()) {
      filelist = walkSync(dir + file + '/', filelist);
    }
    else {
      filelist.push(dir+file);
    }
  });
  return filelist;
};
var result = [];
var files = walkSync("./");

for (var i in files) {
if (files[i].indexOf("/node_modules/") != -1 || files[i].indexOf("/plugins/") != -1) continue;
  var file = fs.readFileSync(files[i],"utf8");
var startindex = 0;
for (;1==1;) {
 var index = file.indexOf("console.log(\"", startindex) + 13;
var ind = file.indexOf("\");", index);
if (index == 12 || ind == -1) break;
startindex = ind;
var tx = file.substr(index, ind - index);
var split = tx.split("\n");
if (split[1]) continue;
var inde = 0;
var tr = tx.split("\"");
var news = "";
for (var j in tr) {
  if (j == inde) {
   news = news + "\"\"" + tr[j];
  if (tr[j].slice(-1) == "\\") {
  inde ++;
  } else {
    inde ++;
    inde ++;
  }
  }
}
result.push(news);
}
}
var final = "";
for (var i in result) {
  final = final + result[i] + "\n";
}
fs.writeFileSync("console.txt",final);
}

Update consolelogfinder.js