Fix code ordering
This commit is contained in:
parent
2e1479d508
commit
6381f4723f
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -32,8 +32,8 @@ fs.readFile('./misc/ascii.txt', function(err, data) {
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
if (files[i].includes(".js")) {
|
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()}`);
|
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
|
// We want to find out what the request handler module is
|
||||||
if (global.modules[files[i].toString().replace(".js", "")].MOD_FUNC == "handle_requests") {
|
if (global.modules[files[i].toString().replace(".js", "")].MOD_FUNC == "handle_requests") {
|
||||||
// Set reqhandler to the request handler for easy getting
|
// Set reqhandler to the request handler for easy getting
|
||||||
|
|
Loading…
Reference in a new issue