How to config baseUserDirectory
Hello
I have a bot and I want to sort my bot module in differents folders :
For example :
How do I need to setup my baseUserDirectory for check commands on all folders ?
Thanks!
Solution:Jump to 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.
2 Replies
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.