edditing code
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user