Ignore files starting with underscores
This commit is contained in:
parent
240b60076a
commit
8d92e7d176
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -38,7 +38,7 @@ const init = async () => {
|
||||||
await crawl("commands",cmdFiles);
|
await crawl("commands",cmdFiles);
|
||||||
client.logger.log(`Loading a total of ${cmdFiles.length} commands.`);
|
client.logger.log(`Loading a total of ${cmdFiles.length} commands.`);
|
||||||
cmdFiles.forEach(f => {
|
cmdFiles.forEach(f => {
|
||||||
if (!f.endsWith(".js") || f.startsWith("commands\\_")) return;
|
if (!f.endsWith(".js") || f.startsWith("commands/_")) return;
|
||||||
const response = client.loadCommand(f);
|
const response = client.loadCommand(f);
|
||||||
if (response) console.log(response);
|
if (response) console.log(response);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue