From 9118b0377f1bdc742b3726305f5f7f64efadb212 Mon Sep 17 00:00:00 2001 From: snipe_blaze <72265661+notsniped@users.noreply.github.com> Date: Thu, 8 Jun 2023 22:59:07 +0530 Subject: [PATCH 1/2] Remove `/sync` command as it isn't being used anymore --- main.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/main.py b/main.py index fd327dfd..f53c0962 100644 --- a/main.py +++ b/main.py @@ -199,21 +199,6 @@ async def help(ctx: ApplicationContext, command: str = None): await ctx.author.send(embed=localembed) await ctx.respond("Check your direct messages.", ephemeral=True) -# DevTools commands -@client.slash_command( - name='sync', - description='Syncs all of the local databases with their latest version' -) -async def sync(ctx: ApplicationContext): - if ctx.author.id != 738290097170153472: return await ctx.respond('Sorry, this command is only for my developer\'s use.') - try: - with open('database/items.json', 'r') as f: items = json.load(f) - with open('config/shop.json', 'r') as f: shopitem = json.load(f) - await ctx.respond('Databases resynced.', ephemeral=True) - except Exception as e: - print(e) - await ctx.respond('An error occured while resyncing. Check console.', ephemeral=True) - # Cog Commands (these cannot be moved into a cog) cogs = client.create_group("cog", "Commands for working with isobot cogs.") From 980834b6a6e400ec16c0d540ec87b5e22f87ec43 Mon Sep 17 00:00:00 2001 From: snipe_blaze <72265661+notsniped@users.noreply.github.com> Date: Thu, 8 Jun 2023 22:59:52 +0530 Subject: [PATCH 2/2] Remove `/sync` command from commands db --- config/commands.json | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/config/commands.json b/config/commands.json index 0020e5cf..5921f02c 100644 --- a/config/commands.json +++ b/config/commands.json @@ -89,16 +89,6 @@ "disabled": true, "bugged": false }, - "sync": { - "name": "Sync Databases", - "description": "Re-caches and reloads all of the bot databases on memory.", - "type": "DevTools", - "cooldown": null, - "args": null, - "usable_by": "the developer", - "disabled": false, - "bugged": false - }, "modify_balance": { "name": "Modify Balance", "description": "Modify a user's wallet balance.",