Some of the handlers will be considered loaded when ignored.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user