Fixed my bots messages

This commit is contained in:
MrMasrozYTLIVE 2024-06-14 17:36:16 +03:00
parent 70655ce901
commit 52a319a1c0

View File

@ -19,14 +19,14 @@ async function loadCommands() {
for (const file of files) {
// Check if the file is a JavaScript file
if (file.endsWith('.js')) {
// const commandName = path.basename(file, '.js');
const commandName = path.basename(file, '.js');
const commandPath = path.join(commandsDir, file);
// Dynamically import the command module
const { default: commandModule } = await import(commandPath);
// Add the command module to the commands object
commands[commandPath] = commandModule;
commands[commandName] = commandModule;
}
}