Rotation and hashing V1.0.1

This commit is contained in:
Patryk Mazur
2026-04-22 19:36:56 +02:00
parent 474793bcaa
commit 1514ce1dc6
4 changed files with 65 additions and 16 deletions
+8 -3
View File
@@ -7,12 +7,17 @@ class Simp(commands.Cog):
def __init__(self, bot: discord.Bot):
self.bot = bot
@discord.slash_command(description="Nie, nie jestem pantoflem")
@discord.slash_command(description='Nie, nie jestem pantoflem')
async def pantofel(self, ctx: discord.ApplicationContext, url: str):
await ctx.defer()
filename = helpers.download_video(url)
await ctx.respond(file=discord.File(filename))
result = helpers.download_video(url)
if result['status'] == 'error':
await ctx.respond(f'Błąd pobierania: {result['message']}')
return
await ctx.respond(file=discord.File(result['filename']))
def setup(bot: discord.Bot):