Skip to content

Commit

Permalink
Format Python code with psf/black push
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and github-actions committed Jan 17, 2023
1 parent 77e6167 commit 292b7f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cogs/text_service_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ async def on_message(self, message):
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)
Expand Down
2 changes: 2 additions & 0 deletions services/text_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
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
Expand Down

0 comments on commit 292b7f6

Please sign in to comment.