Skip to content

Commit

Permalink
Update 3 files
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Aug 4, 2023
1 parent 2aad693 commit 50d4d21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 42 deletions.
2 changes: 0 additions & 2 deletions tlg_bot/kreacher/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from termcolor import colored
from kreacher import kreacher
from kreacher import client
from kreacher.plugins.autoleave import leave_from_inactive_call


logging.basicConfig(
Expand All @@ -29,7 +28,6 @@ async def start_bot():
botme = await client.get_me()
botid = telethon.utils.get_peer_id(botme)
print(f'{colored("[INFO]", "blue")}: ASSISTANT ID {botid}')
await asyncio.create_task(leave_from_inactive_call())


loop = asyncio.get_event_loop()
Expand Down
38 changes: 0 additions & 38 deletions tlg_bot/kreacher/plugins/autoleave.py

This file was deleted.

5 changes: 3 additions & 2 deletions tlg_bot/kreacher/plugins/play_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ async def play_video(event):
return await msg.edit("❗ __Send Me An Live Stream Link / YouTube Video Link / Reply To An Video To Start Video Streaming!__")
regex = r"^(https?\:\/\/)?(www\.youtube\.com|youtu\.?be)\/.+"
match = re.match(regex, url)
await msg.edit("<i>Joining the voice chat...</i>", parse_mode="HTML")
await call_py.start(chat.id)
if call_py.is_connected:
await msg.edit("<i>Joining the voice chat...</i>", parse_mode="HTML")
await call_py.start(chat.id)
if match:
await msg.edit("🔄 <i>Starting YouTube Video Stream...</i>", parse_mode="HTML")
try:
Expand Down

0 comments on commit 50d4d21

Please sign in to comment.