mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-23 03:44:57 +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
|
@ -12,7 +12,6 @@ class Animals(commands.Cog):
|
|||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
|
||||
@commands.command()
|
||||
async def animal(self, ctx, animal):
|
||||
animal = animal.lower().strip() or "racc"
|
||||
|
@ -28,21 +27,17 @@ class Animals(commands.Cog):
|
|||
return
|
||||
|
||||
async with ctx.typing():
|
||||
animal_image_request = requests.get(f"https://api.tinyfox.dev/img?animal={animal}").content
|
||||
animal_image_request = requests.get(
|
||||
f"https://api.tinyfox.dev/img?animal={animal}"
|
||||
).content
|
||||
animal_image = BytesIO(animal_image_request)
|
||||
animal_image.seek(0)
|
||||
animal_file = discord.File(animal_image, filename=animal_filename)
|
||||
|
||||
embed = discord.Embed(
|
||||
title="Animal",
|
||||
description=f"Here's a random {animal}!",
|
||||
colour=discord.Colour.orange(),
|
||||
).set_image(
|
||||
url="attachment://" + animal_filename
|
||||
)
|
||||
title="Animal",
|
||||
description=f"Here's a random {animal}!",
|
||||
colour=discord.Colour.orange(),
|
||||
).set_image(url="attachment://" + animal_filename)
|
||||
|
||||
await ctx.reply(
|
||||
embed=embed,
|
||||
file=animal_file,
|
||||
mention_author=False
|
||||
)
|
||||
await ctx.reply(embed=embed, file=animal_file, mention_author=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue