Skip to content

Commit

Permalink
Dynamically import execute
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Dec 28, 2023
1 parent 4ba71ff commit a1390e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Events/messageEvents/messageCreate/messageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import antivirus from './antivirus.js';
import commandHandler from './commandHandler.js';
import disboard from './disboard.js';
import _eval from './eval.js';
import execute from './execute.js';
import invites from './invites.js';
import levelling from './levelling.js';
import newlines from './newlines.js';
Expand Down Expand Up @@ -37,7 +36,7 @@ export default async (msg: Discord.Message) => {
}

tta(msg);
execute(msg);
(await import(`./execute.js?nonce=${Date.now()}`)).default(msg);
commandHandler(msg);
antivirus(msg);
};

0 comments on commit a1390e2

Please sign in to comment.