mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Notify when compressing
This commit is contained in:
parent
c66ebce60c
commit
eab3b5871c
1 changed files with 7 additions and 0 deletions
|
@ -1266,6 +1266,13 @@ class OtherCog(commands.Cog):
|
|||
st = file.stat().st_size
|
||||
if st / 1024 / 1024 >= MAX_SIZE_MB or st >= BYTES_REMAINING:
|
||||
if compress_if_possible:
|
||||
await ctx.edit(
|
||||
embed=discord.Embed(
|
||||
title="Compressing...",
|
||||
description=str(file),
|
||||
colour=discord.Colour.blurple()
|
||||
)
|
||||
)
|
||||
target = file.with_name(file.name + '.compressed' + file.suffix)
|
||||
ffmpeg_command = [
|
||||
"ffmpeg",
|
||||
|
|
Loading…
Reference in a new issue