Hello everyone!
I'm totally new to Python. I did learned the basics and now trying to learn and understand about making a Discord bot.
I was wondering if there's a way to be organised with the bot commands and stuff instead of writing them all in the main file?
Can I have, say a main.py file that contain the main script to log the bot in, get the token and intents, etc... and then another file like commands.py?
If so, how should I link both file so the bot know it have to go to commands.py to use them when triggered?
I would like to have a good folder structure so it's easier for me to navigate through my scripts instead of having everything in one file... Unless it's a bad idea to separate stuffs?
Maybe something like :
my_discord_bot/
โโโ .env
โโโ main.py
โโโ modules/
โ โโโ commands.py
โ โโโ reactions.py
โ โโโ moderation.py
tell me if I wasn't clear enough. English isn't my main language.
Thanks for your help!

