load order fix

This commit is contained in:
Cynthia Foxwell 2023-09-14 21:11:49 -06:00
parent b61ba47fe4
commit 2784c573b6

View file

@ -9,7 +9,6 @@ const apikeys = require("../apikeys.json");
const Command = require("./lib/command.js"); const Command = require("./lib/command.js");
const events = require("./lib/events.js"); const events = require("./lib/events.js");
const timer = require("./lib/timer.js"); const timer = require("./lib/timer.js");
const {pomello} = require("./lib/utils.js");
const bot = new Dysnomia.Client(config.token, { const bot = new Dysnomia.Client(config.token, {
defaultImageFormat: "png", defaultImageFormat: "png",
@ -48,6 +47,7 @@ global.hf = {
}; };
const CommandDispatcher = require("./lib/commandDispatcher.js"); const CommandDispatcher = require("./lib/commandDispatcher.js");
const {pomello} = require("./lib/utils.js");
for (const file of fs.readdirSync(resolve(__dirname, "modules"))) { for (const file of fs.readdirSync(resolve(__dirname, "modules"))) {
require(resolve(__dirname, "modules", file)); require(resolve(__dirname, "modules", file));