edditing code

This commit is contained in:
2022-08-22 21:50:15 +03:00
parent 89707a7e9a
commit 3e7a812fdc
5 changed files with 64 additions and 29 deletions

View File

@@ -2,6 +2,8 @@ from os import listdir
"""
Loads, unloads Cogs files
cog_list: return list of cog filenames
"""
@@ -13,13 +15,6 @@ def cog_list():
return cogs_list
async def cogs_dict():
cog_dict = {}
for _cog in cog_list():
cog_dict.update({f'{_cog}': f'{_cog}'})
return cog_dict
async def work_with_cogs(what_do, bot):
for _filename in cog_list():
if what_do == "load":