diff --git a/cogs/cogs.py b/cogs/cogs.py index 4606381..fd78a2c 100644 --- a/cogs/cogs.py +++ b/cogs/cogs.py @@ -30,6 +30,8 @@ class Cogs(commands.Cog): @commands.is_owner() async def unload(self, ctx, *, module): """Unloads a module.""" + if module == "cogs": + return await ctx.send('Unloading this cog is not allowed') try: self.bot.unload_extension(f'cogs.{module}') await ctx.send(f'{module} unloaded')