mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
tess
This commit is contained in:
parent
b409c4346b
commit
a55824673b
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ async def start_bot():
|
||||||
LOGGER.info("+===============+===============+===============+===============+")
|
LOGGER.info("+===============+===============+===============+===============+")
|
||||||
LOGGER.info(bot_modules)
|
LOGGER.info(bot_modules)
|
||||||
LOGGER.info("+===============+===============+===============+===============+")
|
LOGGER.info("+===============+===============+===============+===============+")
|
||||||
LOGGER.info(f"[INFO]: BOT STARTED AS @{BOT_USERNAME}!")
|
LOGGER.info("[INFO]: BOT STARTED AS @%s!", BOT_USERNAME)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
LOGGER.info("[INFO]: SENDING ONLINE STATUS")
|
LOGGER.info("[INFO]: SENDING ONLINE STATUS")
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ async def convertsrt(self: Client, ctx: Message, strings):
|
||||||
filename = dl.split("/", 3)[3]
|
filename = dl.split("/", 3)[3]
|
||||||
LOGGER.info(f"ConvertSub: {filename} by {ctx.from_user.first_name if ctx.from_user else ctx.sender_chat.title} [{ctx.from_user.id if ctx.from_user else ctx.sender_chat.id}]")
|
LOGGER.info(f"ConvertSub: {filename} by {ctx.from_user.first_name if ctx.from_user else ctx.sender_chat.title} [{ctx.from_user.id if ctx.from_user else ctx.sender_chat.id}]")
|
||||||
suffix = "srt" if ctx.command[0] == "converttosrt" else "ass"
|
suffix = "srt" if ctx.command[0] == "converttosrt" else "ass"
|
||||||
(await shell_exec(f"ffmpeg -i '{dl}' 'downloads/{filename}.{suffix}'"))[0]
|
(await shell_exec(f"ffmpeg -i '{dl}' 'downloads/{filename}.{suffix}'"))[0] # skipcq: PYL-W0106
|
||||||
c_time = time()
|
c_time = time()
|
||||||
await ctx.reply_document(
|
await ctx.reply_document(
|
||||||
f"downloads/{filename}.{suffix}",
|
f"downloads/{filename}.{suffix}",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue