Some of the handlers will be considered loaded when ignored.

This commit is contained in:
Kwafuri
2024-02-04 07:29:24 +00:00
parent 9273023d3a
commit 690d6ed86a
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ table.setHeading('Commands', 'Status').setBorder('|', '-', '+', '+');
module.exports.name = 'commands';
module.exports = (client) => {
if (!fs.existsSync(`./commands`)) return;
fs.readdirSync('./commands/').forEach((dir) => {
const files = fs.readdirSync(`./commands/${dir}`).filter((file) => file.endsWith('.js'));
if (files.length <= 0) return;