forked from noxious/server
Added debugging line
This commit is contained in:
parent
1efeae5e55
commit
ee18a28006
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user