incorrect documentation is just 👌
This commit is contained in:
parent
fca8684f34
commit
06df732c80
1 changed files with 4 additions and 2 deletions
|
@ -109,7 +109,8 @@ class Admin(Cog):
|
||||||
cogs_to_reload = re.findall(r'cogs/([a-z_]*).py[ ]*\|', git_output)
|
cogs_to_reload = re.findall(r'cogs/([a-z_]*).py[ ]*\|', git_output)
|
||||||
for cog in cogs_to_reload:
|
for cog in cogs_to_reload:
|
||||||
try:
|
try:
|
||||||
self.bot.reload_extension("cogs." + cog)
|
self.bot.unload_extension("cogs." + cog)
|
||||||
|
self.bot.load_extension("cogs." + cog)
|
||||||
self.bot.log.info(f'Reloaded ext {cog}')
|
self.bot.log.info(f'Reloaded ext {cog}')
|
||||||
await ctx.send(f':white_check_mark: `{cog}` '
|
await ctx.send(f':white_check_mark: `{cog}` '
|
||||||
'successfully reloaded.')
|
'successfully reloaded.')
|
||||||
|
@ -153,7 +154,8 @@ class Admin(Cog):
|
||||||
self.lastreload = ext
|
self.lastreload = ext
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.bot.reload_extension("cogs." + ext)
|
self.bot.unload_extension("cogs." + ext)
|
||||||
|
self.bot.load_extension("cogs." + ext)
|
||||||
await self.cog_load_actions(ext)
|
await self.cog_load_actions(ext)
|
||||||
except:
|
except:
|
||||||
await ctx.send(f':x: Cog reloading failed, traceback: '
|
await ctx.send(f':x: Cog reloading failed, traceback: '
|
||||||
|
|
Loading…
Reference in a new issue