import discord from ..utils import helpers from discord.ext import commands class Simp(commands.Cog): def __init__(self, bot: discord.Bot): self.bot = bot @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)) def setup(bot: discord.Bot): bot.add_cog(Simp(bot))