Тэги:
#how_to_make_a_discord_bot #discord_bot #discord_bot_tutorial #discord_bot_in_python #discord.py_tutorial #how_to_make_a_bot_with_discord.py #python_tutorial #discord.py #how_to_make_a_bot #discord_developer #discord_bots #programming #programming_tutorial #how_to_make_a_discord_bot_with_python #how_to_make_a_discord_bot_in_python #make_your_own_discord_bot #discord.py_rewrite_tutorial #python_discord #cogs #adding_cogs_to_discord_bots #adding_cogs_python_discord_bot #bot_modulesКомментарии:
In the same file, can I put multiple commands inside 1 single class, something like Class Moderation() and inside moderation commands like ban, unban, mute etc?
Or should it be 1 command per class in the same file?
What exactly is the point of splitting cogs into different files? Is it only for better reading/structure? Why shouldn‘t I just put all my commands into one big cog alongside with the events (on_ready, on_message, etc alongside the commands.Cog.listener decorator)?
What are good criteria to split which commands go into one cog and which need a seperate cog file?
Which VS-code theme are you using?
ОтветитьCan you continue this series. I’m really loving it
ОтветитьHow can I use cogs with Json? I am having a hard time connecting the two files. Both files ARE in the SAME folder.
Ответить