Format Python code with psf/black push

github-actions 2 years ago
parent 77e6167fc3
commit 292b7f6acd

@ -525,7 +525,9 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
and Moderation.moderation_queues[message.guild.id] is not None and Moderation.moderation_queues[message.guild.id] is not None
): ):
# Verify that the user is not in a role that can bypass moderation # 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 # Create a timestamp that is 0.5 seconds from now
timestamp = ( timestamp = (
datetime.datetime.now() + datetime.timedelta(seconds=0.5) datetime.datetime.now() + datetime.timedelta(seconds=0.5)

@ -9,6 +9,8 @@ from discord.ext import pages
from services.deletion_service import Deletion from services.deletion_service import Deletion
from models.openai_model import Model from models.openai_model import Model
from models.user_model import EmbeddedConversationItem, RedoUser from models.user_model import EmbeddedConversationItem, RedoUser
class TextService: class TextService:
def __init__(self): def __init__(self):
pass pass

Loading…
Cancel
Save