From ac7ff93e782c1a447b26bfb92e75c8f117f66a48 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 2 Oct 2024 15:18:33 -0600 Subject: [PATCH] fixes --- bin/storage.py | 2 +- cogs/settings.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/storage.py b/bin/storage.py index 6237bac..e795c2e 100644 --- a/bin/storage.py +++ b/bin/storage.py @@ -21,7 +21,7 @@ class storage: if key is None: return modules.get(module) - if value is not None: + else: modules[module][key] = value await self.collection.update_one( {"server_id": self.server_id}, diff --git a/cogs/settings.py b/cogs/settings.py index 4d09264..6395c1a 100644 --- a/cogs/settings.py +++ b/cogs/settings.py @@ -8,11 +8,6 @@ class Settings(commands.Cog): @bridge.bridge_group(aliases=["set", "s"], invoke_without_command=True) async def settings(self, ctx): await ctx.respond("invalid command, see !help settings for more info") - - @settings.command() - - - def setup(bot): bot.add_cog(Settings(bot))