incorrect documentation is just 👌

This commit is contained in:
Ave Ozkal 2019-04-24 12:08:44 +03:00
parent fca8684f34
commit 06df732c80
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -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: '