From 428f511abe679eb788021c4d87979e6d268bd6f5 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 19 Jun 2024 17:50:33 +0100 Subject: [PATCH] auto expire 0x0 referrals after 12 hours --- src/cogs/ffmeta.py | 2 +- src/cogs/ytdl.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/ffmeta.py b/src/cogs/ffmeta.py index c7f2d92..ef69879 100644 --- a/src/cogs/ffmeta.py +++ b/src/cogs/ffmeta.py @@ -287,7 +287,7 @@ class FFMeta(commands.Cog): "-y", "-f", "mp4", - f"-r", + "-r", "5", "pipe:1", stdout=asyncio.subprocess.PIPE, diff --git a/src/cogs/ytdl.py b/src/cogs/ytdl.py index df232cc..bc4338e 100644 --- a/src/cogs/ytdl.py +++ b/src/cogs/ytdl.py @@ -221,6 +221,7 @@ class YTDLCog(commands.Cog): response = await client.post( "https://0x0.st", files={"file": (name, data, mime_type)}, + data={"expires": 12}, headers={"User-Agent": "CollegeBot (matrix: @nex:nexy7574.co.uk)"}, ) if response.status_code == 200: @@ -228,7 +229,6 @@ class YTDLCog(commands.Cog): response.raise_for_status() @commands.slash_command(name="yt-dl") - # @commands.bot_has_permissions(send_messages=True, embed_links=True, attach_files=True) async def yt_dl_command( self, ctx: discord.ApplicationContext,