diff --git a/src/index.js b/src/index.js index 8b9fcbd..3fe97a1 100644 --- a/src/index.js +++ b/src/index.js @@ -8,7 +8,6 @@ const sqlite3 = require("sqlite3"); const config = require("../config.json"); const apikeys = require("../apikeys.json"); const Command = require("./lib/command.js"); -const CommandDispatcher = require("./lib/commandDispatcher.js"); const events = require("./lib/events.js"); const timer = require("./lib/timer.js"); @@ -48,6 +47,8 @@ global.hf = { database, }; +const CommandDispatcher = require("./lib/commandDispatcher.js"); + for (const file of fs.readdirSync(resolve(__dirname, "modules"))) { require(resolve(__dirname, "modules", file)); logger.info("hf:modules", "Loaded module: '%s'", file);