How to config baseUserDirectory

Hello I have a bot and I want to sort my bot module in differents folders : For example :
Ticket/Commands
Common/Commands
Youtube/Commands
Moderation/Commands
index.js
Ticket/Commands
Common/Commands
Youtube/Commands
Moderation/Commands
index.js
How do I need to setup my baseUserDirectory for check commands on all folders ? Thanks!
Solution:
You don't configure that through setting the baseUserDirectory. Instead you leverage a system such as https://www.sapphirejs.dev/docs/Guide/additional-information/implementing-a-discordpy-like-cog-system or use the plugin by @killbasa https://github.com/KBot-discord/plugins/tree/main/packages/modules#readme
Sapphire Framework
Implementing a discord.py like Cog system | Sapphire
Developer who come from the Python ecosystem may be familiar with the "[Cog]" system that discord.py has implemented.
GitHub
plugins/packages/modules at main · KBot-discord/plugins
Sapphire plugins for KBot. Contribute to KBot-discord/plugins development by creating an account on GitHub.
Jump to solution
2 Replies
Solution
Favna
Favna13mo ago
You don't configure that through setting the baseUserDirectory. Instead you leverage a system such as https://www.sapphirejs.dev/docs/Guide/additional-information/implementing-a-discordpy-like-cog-system or use the plugin by @killbasa https://github.com/KBot-discord/plugins/tree/main/packages/modules#readme
Sapphire Framework
Implementing a discord.py like Cog system | Sapphire
Developer who come from the Python ecosystem may be familiar with the "[Cog]" system that discord.py has implemented.
GitHub
plugins/packages/modules at main · KBot-discord/plugins
Sapphire plugins for KBot. Contribute to KBot-discord/plugins development by creating an account on GitHub.
KB
KB13mo ago
And just to note, it's not ready for the cjs/esm split. Gotta do that today. Should be good to go.
Want results from more Discord servers?
Add your server