From 40ddf5a3998080b08ba5ed6d5efb4d56686e6163 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Wed, 11 Jan 2023 08:50:38 +0000 Subject: [PATCH] Format Python code with psf/black push --- cogs/gpt_3_commands_and_converser.py | 6 +----- cogs/image_prompt_optimizer.py | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index a566060..cd12ecf 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -101,7 +101,6 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): self.conversation_threads = {} self.summarize = self.model.summarize_conversations - # Moderation service data self.moderation_queues = {} self.moderation_alerts_channel = EnvService.get_moderations_alert_channel() @@ -290,10 +289,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): # TODO: add extra condition to check if multi is enabled for the thread, stated in conversation_threads def check_conversing(self, user_id, channel_id, message_content, multi=None): - cond1 = ( - channel_id - in self.conversation_threads - ) + cond1 = channel_id in self.conversation_threads # If the trimmed message starts with a Tilde, then we want to not contribute this to the conversation try: cond2 = not message_content.strip().startswith("~") diff --git a/cogs/image_prompt_optimizer.py b/cogs/image_prompt_optimizer.py index ceb12ba..476a48e 100644 --- a/cogs/image_prompt_optimizer.py +++ b/cogs/image_prompt_optimizer.py @@ -121,7 +121,6 @@ class ImgPromptOptimizer(discord.Cog, name="ImgPromptOptimizer"): .replace("Output:", "") ) - self.converser_cog.users_to_interactions[user.id] = [] self.converser_cog.users_to_interactions[user.id].append( response_message.id