auto expire 0x0 referrals after 12 hours
All checks were successful
Build and Publish / build_and_publish (push) Successful in 2m10s

This commit is contained in:
Nexus 2024-06-19 17:50:33 +01:00
parent 2ee127bce2
commit 428f511abe
2 changed files with 2 additions and 2 deletions

View file

@ -287,7 +287,7 @@ class FFMeta(commands.Cog):
"-y", "-y",
"-f", "-f",
"mp4", "mp4",
f"-r", "-r",
"5", "5",
"pipe:1", "pipe:1",
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,

View file

@ -221,6 +221,7 @@ class YTDLCog(commands.Cog):
response = await client.post( response = await client.post(
"https://0x0.st", "https://0x0.st",
files={"file": (name, data, mime_type)}, files={"file": (name, data, mime_type)},
data={"expires": 12},
headers={"User-Agent": "CollegeBot (matrix: @nex:nexy7574.co.uk)"}, headers={"User-Agent": "CollegeBot (matrix: @nex:nexy7574.co.uk)"},
) )
if response.status_code == 200: if response.status_code == 200:
@ -228,7 +229,6 @@ class YTDLCog(commands.Cog):
response.raise_for_status() response.raise_for_status()
@commands.slash_command(name="yt-dl") @commands.slash_command(name="yt-dl")
# @commands.bot_has_permissions(send_messages=True, embed_links=True, attach_files=True)
async def yt_dl_command( async def yt_dl_command(
self, self,
ctx: discord.ApplicationContext, ctx: discord.ApplicationContext,