From 292b7f6acda5977b8e7c1086c178b0ed24a4c4f9 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Tue, 17 Jan 2023 21:26:46 +0000 Subject: [PATCH] Format Python code with psf/black push --- cogs/text_service_cog.py | 4 +++- services/text_service.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cogs/text_service_cog.py b/cogs/text_service_cog.py index 0914b36..9dc46b1 100644 --- a/cogs/text_service_cog.py +++ b/cogs/text_service_cog.py @@ -525,7 +525,9 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): and Moderation.moderation_queues[message.guild.id] is not None ): # Verify that the user is not in a role that can bypass moderation - if CHAT_BYPASS_ROLES is [None] or not any(role.name.lower() in CHAT_BYPASS_ROLES for role in message.author.roles): + if CHAT_BYPASS_ROLES is [None] or not any( + role.name.lower() in CHAT_BYPASS_ROLES for role in message.author.roles + ): # Create a timestamp that is 0.5 seconds from now timestamp = ( datetime.datetime.now() + datetime.timedelta(seconds=0.5) diff --git a/services/text_service.py b/services/text_service.py index 6d7897d..d774ddc 100644 --- a/services/text_service.py +++ b/services/text_service.py @@ -9,6 +9,8 @@ from discord.ext import pages from services.deletion_service import Deletion from models.openai_model import Model from models.user_model import EmbeddedConversationItem, RedoUser + + class TextService: def __init__(self): pass