Have a 30 second cooldown between transcodes
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 14s

This commit is contained in:
Nexus 2024-05-05 20:15:02 +01:00
parent 6b7968eef1
commit 71b8111b17
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -230,6 +230,7 @@ class AutoResponder(commands.Cog):
stdout,
stderr,
)
self._cooldown_transcode()
return discord.File(tmp_path), tmp_path
async def transcode_hevc_to_h264(
@ -268,7 +269,6 @@ class AutoResponder(commands.Cog):
_r = await self._transcode_hevc_to_h264(link, update=message)
if not _r:
continue
self._cooldown_transcode()
file, _p = _r
if file:
if _p.stat().st_size <= 24.5 * 1024 * 1024: