chore: ruff formatting

This commit is contained in:
neoarz
2025-11-02 23:32:52 -05:00
parent 2ce2c69a87
commit 1eff6c9f53
91 changed files with 3824 additions and 2518 deletions

View File

@@ -4,14 +4,12 @@ from discord.ext.commands import Context
import aiohttp
import io
def docs_command():
@commands.hybrid_command(
name="docs",
description="Shows the docs image."
)
@commands.hybrid_command(name="docs", description="Shows the docs image.")
async def docs(self, context):
url = "https://yes.nighty.works/raw/akdx0q.webp"
async with aiohttp.ClientSession() as session:
async with session.get(url) as resp:
data = await resp.read()
@@ -20,10 +18,16 @@ def docs_command():
if getattr(context, "interaction", None):
inter = context.interaction
if not inter.response.is_done():
await inter.response.send_message("## Dont be like the rest, read the docs", file=file, ephemeral=False)
await inter.response.send_message(
"## Dont be like the rest, read the docs",
file=file,
ephemeral=False,
)
else:
await inter.followup.send("## Dont be like the rest, read the docs", file=file, ephemeral=True)
await inter.followup.send(
"## Dont be like the rest, read the docs", file=file, ephemeral=True
)
else:
await context.send("## Dont be like the rest, read the docs", file=file)
return docs