diff --git a/deploy.js b/deploy.js index ffc9de7..d1bc276 100644 --- a/deploy.js +++ b/deploy.js @@ -40,7 +40,7 @@ readdirAsync(mainPath) await Promise.all( categories.map(async (category) => { const catPath = join(mainPath, category); - const files = (await readdirAsync(catPath)).filter((file) => file.endsWith('.js')); + const files = (await readdirAsync(catPath)).filter((file) => file.endsWith('.js') && !file.endsWith('.example.js')); // For each command file return await Promise.all( files.map(async (current) => { diff --git a/index.js b/index.js index 81ff95a..7112316 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ readdirAsync(cmdPath) categories.map(async (category) => { const catPath = join(cmdPath, category); const content = await readdirAsync(catPath); - const files = content.filter((file) => file.endsWith('.js')); + const files = content.filter((file) => file.endsWith('.js') && !file.endsWith('.example.js')); // For each command file return await Promise.all( files.map(async (current) => {