fix: standardize command import paths to lowercase for consistency
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// utils/Command.js - Base command class for Discord bot commands
|
||||
// utils/command.js - Base command class for Discord bot commands
|
||||
// Copyright (C) 2025 Luis Bauza
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
||||
@@ -25,7 +25,7 @@ export async function loadCommands(commandsPath, logger) {
|
||||
const commandModule = await import(filePath);
|
||||
const Command = commandModule.default;
|
||||
|
||||
const CommandBase = (await import('./Command.js')).default;
|
||||
const CommandBase = (await import('./command.js')).default;
|
||||
if (Command.prototype instanceof CommandBase) {
|
||||
// New style - class extending Command
|
||||
const commandInstance = new Command();
|
||||
|
||||
Reference in New Issue
Block a user