Added more debugging
This commit is contained in:
1
index.js
1
index.js
@@ -110,6 +110,7 @@ const commandFiles = fs.readdirSync(commandsPath).filter(file => file.endsWith('
|
|||||||
for (const file of commandFiles) {
|
for (const file of commandFiles) {
|
||||||
const filePath = path.join(commandsPath, file);
|
const filePath = path.join(commandsPath, file);
|
||||||
const command = require(filePath);
|
const command = require(filePath);
|
||||||
|
log.DEBUG("Importing command: ", command.data.name);
|
||||||
// Set a new item in the Collection
|
// Set a new item in the Collection
|
||||||
// With the key as the command name and the value as the exported module
|
// With the key as the command name and the value as the exported module
|
||||||
client.commands.set(command.data.name, command);
|
client.commands.set(command.data.name, command);
|
||||||
|
|||||||
Reference in New Issue
Block a user