Fix code ordering

This commit is contained in:
tgpethan 2019-11-23 21:11:47 +00:00
parent 2e1479d508
commit 6381f4723f

View file

@ -32,8 +32,8 @@ fs.readFile('./misc/ascii.txt', function(err, data) {
*/
try {
if (files[i].includes(".js")) {
global.modules[files[i].toString().replace(".js", "")] = require(`./modules/${files[i].toString()}`);
console.log(`[Modules] Found module ${files[i].toString()}`);
global.modules[files[i].toString().replace(".js", "")] = require(`./modules/${files[i].toString()}`);
// We want to find out what the request handler module is
if (global.modules[files[i].toString().replace(".js", "")].MOD_FUNC == "handle_requests") {
// Set reqhandler to the request handler for easy getting