mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +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
|
st = file.stat().st_size
|
||||||
if st / 1024 / 1024 >= MAX_SIZE_MB or st >= BYTES_REMAINING:
|
if st / 1024 / 1024 >= MAX_SIZE_MB or st >= BYTES_REMAINING:
|
||||||
if compress_if_possible:
|
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)
|
target = file.with_name(file.name + '.compressed' + file.suffix)
|
||||||
ffmpeg_command = [
|
ffmpeg_command = [
|
||||||
"ffmpeg",
|
"ffmpeg",
|
||||||
|
|
Loading…
Reference in a new issue