From 845c47280f4afe239cc208b6c913292042de8954 Mon Sep 17 00:00:00 2001 From: Santiago Ramirez <94815926+SantiiRepair@users.noreply.github.com> Date: Wed, 23 Aug 2023 08:56:47 +0000 Subject: [PATCH] Update play_book.py and requirements.txt --- bot/plugins/commands/play_book.py | 6 +++--- requirements.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bot/plugins/commands/play_book.py b/bot/plugins/commands/play_book.py index 84f514f..5901eea 100644 --- a/bot/plugins/commands/play_book.py +++ b/bot/plugins/commands/play_book.py @@ -1,5 +1,6 @@ import os import uuid +import shutup import PyPDF2 import logging from asyncio import sleep @@ -16,6 +17,7 @@ clear_queue, ) +shutup.please() c = os.path.dirname(os.path.abspath(__file__)) @@ -25,9 +27,7 @@ async def _(client: Client, message: Message): text = "" h = _HTMLFilter() book = os.path.join(c, f"../../downloads/books/{str(uuid.uuid4())}.pdf") - audiobook = os.path.join( - c, f"../../tmp/{str(uuid.uuid4())}.wav" - ) + audiobook = os.path.join(c, f"../../tmp/{str(uuid.uuid4())}.wav") try: if not message.reply_to_message: return await message.reply( diff --git a/requirements.txt b/requirements.txt index 85f75d5..d66f3b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,6 +13,7 @@ pyrogram==2.0.106 python-dotenv==1.0.0 PyPDF2==3.0.1 requests==2.31.0 +shutup==0.2.0 speedtest-cli==2.1.3 termcolor==2.3.0 tgcrypto==1.2.5