Recharger toutes les extensions Discord.py
# Make sure you don't have a command called "commands"
@client.command()
@commands.is_owner() # Makes sure the person running the command is the owner
async def restart():
for filename in os.listdir("./cogs"): # Change "cogs" to your folder name
if filename.endswith(".py"):
client.reload_extension(f"cogs.{filename[:-3]}") # Change "cogs" to your folder name
HelloWorld