From 6381f4723f5303d6a0bc0c960c7cc1ceb180ecab Mon Sep 17 00:00:00 2001 From: tgpethan Date: Sat, 23 Nov 2019 21:11:47 +0000 Subject: [PATCH] Fix code ordering --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b1bcba8..e09ce3f 100644 --- a/index.js +++ b/index.js @@ -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