mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
chore: ruff formatting
This commit is contained in:
@@ -4,14 +4,12 @@ from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
def support_command():
|
||||
@commands.hybrid_command(
|
||||
name="support",
|
||||
description="Shows the support image."
|
||||
)
|
||||
@commands.hybrid_command(name="support", description="Shows the support image.")
|
||||
async def support(self, context):
|
||||
url = "https://yes.nighty.works/raw/wGzHIV.gif"
|
||||
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(url) as resp:
|
||||
data = await resp.read()
|
||||
@@ -25,5 +23,5 @@ def support_command():
|
||||
await inter.followup.send(file=file, ephemeral=True)
|
||||
else:
|
||||
await context.send(file=file)
|
||||
|
||||
|
||||
return support
|
||||
|
||||
Reference in New Issue
Block a user