diff --git a/index.js b/index.js index 9992a88..e74b106 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ const init = async () => { await crawl("commands",cmdFiles); client.logger.log(`Loading a total of ${cmdFiles.length} commands.`); cmdFiles.forEach(f => { - if (!f.endsWith(".js") || !f.startsWith("_")) return; + if (!f.endsWith(".js") || f.startsWith("commands\\_")) return; const response = client.loadCommand(f); if (response) console.log(response); });