Add end TS support

This commit is contained in:
nexy7574 2023-09-09 22:20:18 +01:00
parent 006328a6d7
commit 0d1240273d

View file

@ -1024,12 +1024,17 @@ class OtherCog(commands.Cog):
"-y",
str(file)
]
if end_timestamp is not None:
minutes, seconds = divmod(end_timestamp, 60)
hours, minutes = divmod(minutes, 60)
_args.insert(5, "-to")
_args.insert(6, "{!s}:{!s}:{!s}".format(*map(round, (hours, minutes, seconds))))
await self.bot.loop.run_in_executor(
None,
partial(
subprocess.run,
,
_args,
check=True,
capture_output=True
)