Added debugging line

This commit is contained in:
Dennis Postma 2024-06-02 20:11:56 +02:00
parent 1efeae5e55
commit ee18a28006

View File

@ -57,12 +57,16 @@ class CommandManager {
for (const file of files) { for (const file of files) {
const ext = path.extname(file); const ext = path.extname(file);
const commandName = path.basename(file, ext); const commandName = path.basename(file, ext);
const commandPath = path.join(commandsDir, file); let commandPath = path.join(commandsDir, file);
console.log(commandPath);
if (os.platform() === 'win32') { if (os.platform() === 'win32') {
const commandPath = path.join(commandsDir, file).replace(/\\/g, '/'); commandPath = path.join(commandsDir, file).replace(/\\/g, '/');
} }
console.log(commandPath);
const module = await import(commandPath); const module = await import(commandPath);
this.registerCommand(commandName, module.default); this.registerCommand(commandName, module.default);
} }