From 8d92e7d1762f50f1f83ba8cfa2812d2c7997985c Mon Sep 17 00:00:00 2001 From: rhearmas Date: Tue, 11 Aug 2020 22:06:15 -0400 Subject: [PATCH] Ignore files starting with underscores --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e74b106..da3744f 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("commands\\_")) return; + if (!f.endsWith(".js") || f.startsWith("commands/_")) return; const response = client.loadCommand(f); if (response) console.log(response); });