mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-27 22:03:17 +00:00
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:
parent
0c1909807a
commit
3cf308a34b
4 changed files with 50 additions and 32 deletions
|
@ -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}"'
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue