style: format code with black

Format code with black

This commit fixes the style issues introduced in 0c19098 according to the output
from Black.

Details: None
This commit is contained in:
deepsource-autofix[bot] 2023-09-08 17:44:22 +00:00 committed by GitHub
parent 0c1909807a
commit 3cf308a34b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 32 deletions

View file

@ -27,10 +27,7 @@ async def on_ready():
@lynxie.event
async def on_command(ctx):
if (
ctx.author == lynxie.user or
ctx.author.bot
):
if ctx.author == lynxie.user or ctx.author.bot:
return
query = CommandHistory(
@ -45,18 +42,17 @@ async def on_command(ctx):
db.session.commit()
@lynxie.event
async def on_message_edit(before, after):
if (
before.author == lynxie.user or
before.author.bot or
before.content == after.content
before.author == lynxie.user
or before.author.bot
or before.content == after.content
):
return
await before.channel.send(
f'@{before.author} edited their message!!!\n'
f"@{before.author} edited their message!!!\n"
f'"{before.content}" --> "{after.content}"'
)