mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Add end TS support
This commit is contained in:
parent
006328a6d7
commit
0d1240273d
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue