V1.0 working version

This commit is contained in:
Patryk Mazur
2026-04-22 01:00:59 +02:00
parent 5a9fba903d
commit 474793bcaa
5 changed files with 76 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import os
def setup(bot):
for filename in os.listdir(os.path.dirname(__file__)):
if filename.endswith(".py") and not filename.startswith("_"):
bot.load_extension(f"bot.cogs.{filename[:-3]}")
print(f"Załadowano: {filename[:-3]}")
+19
View File
@@ -0,0 +1,19 @@
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))