This is my code.
for filename in os.listdir(\'lib\\commands\'): if filename.endswith(\'.py\'): client.load_extension(f\'cogs.{filename[:-3]}\')