Format Python code with psf/black push

github-actions 2 years ago
parent d544599574
commit 40ddf5a399

@ -101,7 +101,6 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
self.conversation_threads = {} self.conversation_threads = {}
self.summarize = self.model.summarize_conversations self.summarize = self.model.summarize_conversations
# Moderation service data # Moderation service data
self.moderation_queues = {} self.moderation_queues = {}
self.moderation_alerts_channel = EnvService.get_moderations_alert_channel() 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 # 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): def check_conversing(self, user_id, channel_id, message_content, multi=None):
cond1 = ( cond1 = channel_id in self.conversation_threads
channel_id
in self.conversation_threads
)
# If the trimmed message starts with a Tilde, then we want to not contribute this to the conversation # If the trimmed message starts with a Tilde, then we want to not contribute this to the conversation
try: try:
cond2 = not message_content.strip().startswith("~") cond2 = not message_content.strip().startswith("~")

@ -121,7 +121,6 @@ class ImgPromptOptimizer(discord.Cog, name="ImgPromptOptimizer"):
.replace("Output:", "") .replace("Output:", "")
) )
self.converser_cog.users_to_interactions[user.id] = [] self.converser_cog.users_to_interactions[user.id] = []
self.converser_cog.users_to_interactions[user.id].append( self.converser_cog.users_to_interactions[user.id].append(
response_message.id response_message.id

Loading…
Cancel
Save