mirror of
https://github.com/UiO-Gaming/ShiteMusicBot.git
synced 2026-11-07 14:54:29 +01:00
More guild settings.
This commit is contained in:
1 parent
7b2941ae2b
commit
e8225d42f0
4 files changed
+146
-18
No files matched your search
+3
-3
@@ -55,10 +55,10 @@ class Cogs:
|
||||
"""Reloads all extensions"""
|
||||
try:
|
||||
for extension in self.bot.extensions:
|
||||
if extension == 'cogs':
|
||||
if extension == 'cogs.cogs':
|
||||
continue
|
||||
self.bot.unload_extension(f'cogs.{extension}')
|
||||
self.bot.load_extension(f'cogs.{extension}')
|
||||
self.bot.unload_extension(f'{extension}')
|
||||
self.bot.load_extension(f'{extension}')
|
||||
await ctx.send('Extensions reloaded')
|
||||
except Exception as e:
|
||||
await ctx.send(f'```py\n{traceback.format_exc()}\n```')
|
||||
|
||||
Reference in new issue
Block a user