#Use multiple files
1 messages · Page 1 of 1 (latest)
but if I use a command writen on another file than the start file, it's not working and it say that the command isn't found
you should use cogs and put common functions in a separate file that's not a cog that you can just import
how should I write it then
put your commands in cogs
what is cogs
Bot examples: https://github.com/Pycord-Development/pycord/tree/master/examples
Slash command/context menu examples: https://github.com/Pycord-Development/pycord/tree/master/examples/app_commands
Buttons, dropdowns example: https://github.com/Pycord-Development/pycord/tree/master/examples/views
some examples in the repo ^