From 7dc714fc30acbb02a30fb174f9315ae9fe218628 Mon Sep 17 00:00:00 2001 From: Birger Moell Date: Wed, 14 Dec 2022 21:56:32 +0100 Subject: [PATCH] Lint fix --- bot/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/bot.py b/bot/bot.py index 6f7ede73..aff74b26 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -31,6 +31,7 @@ TEST_GUILD_LAION = os.getenv("TEST_GUILD_LAION") # TEST_GUILD = False guild_ids = [TEST_GUILD, TEST_GUILD_LAION] + # Initiate the client and command tree to create slash commands. class OpenChatGPTClient(discord.Client): def __init__(self, *, intents: discord.Intents): @@ -45,12 +46,11 @@ class OpenChatGPTClient(discord.Client): guild = discord.Object(id=guild_id) self.tree.copy_global_to(guild=guild) await self.tree.sync(guild=guild) - - + # guild = discord.Object(id=TEST_GUILD) # self.tree.copy_global_to(guild=guild) # await self.tree.sync(guild=guild) - else: + else: # This can take up to an hour for the commands to be registered. await self.tree.sync() logger.debug("Ready!")