conaticus / boolean

MIT License
74 stars 46 forks source link

The files.ts file does not work if there are subdirectories #169

Closed mohamedarish closed 2 years ago

mohamedarish commented 2 years ago

This file causes file directories to appear like opt/app/src/commands/moderation/opt/app/src/commands/moderation/ban.ts instead of opt/app/src/commands/moderation/ban.ts. This is because the recursion returns the whole path instead of the filename and then appends the full directory again.

It doesn't affect the bot right now as there are no sub-directories inside commands or events.