Skip to content

Commit

Permalink
Update play_book.py and requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Aug 23, 2023
1 parent 57168a0 commit 845c472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/plugins/commands/play_book.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import uuid
import shutup
import PyPDF2
import logging
from asyncio import sleep
Expand All @@ -16,6 +17,7 @@
clear_queue,
)

shutup.please()
c = os.path.dirname(os.path.abspath(__file__))


Expand All @@ -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(
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 845c472

Please sign in to comment.