From 7606e2bd64276a7d6a2d5ecea455449a889077c0 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Wed, 9 Feb 2022 22:35:35 +0700 Subject: [PATCH] unused --- program/music.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/program/music.py b/program/music.py index edab051..f341c34 100644 --- a/program/music.py +++ b/program/music.py @@ -2,6 +2,7 @@ # Commit Start Date 20/10/2021 # Finished On 28/10/2021 + import os # pyrogram stuff from pyrogram import Client @@ -22,7 +23,7 @@ from driver.core import calls, user, bot from driver.utils import bash from driver.database.dbpunish import is_gbanned_user from driver.database.dblockchat import blacklisted_chats -from driver.database.dbqueue import add_active_chat, remove_active_chat, music_on, music_off +from driver.database.dbqueue import add_active_chat, remove_active_chat, music_on from config import BOT_USERNAME, IMG_5 # youtube-dl stuff from youtubesearchpython import VideosSearch @@ -200,7 +201,6 @@ async def play(c: Client, m: Message): os.remove(image) except Exception as e: await suhu.delete() - await music_off(chat_id) await remove_active_chat(chat_id) await m.reply_text(f"šŸš« error:\n\nĀ» {e}") else: @@ -269,7 +269,6 @@ async def play(c: Client, m: Message): os.remove(image) except Exception as ep: await suhu.delete() - await music_off(chat_id) await remove_active_chat(chat_id) await m.reply_text(f"šŸš« error: `{ep}`") @@ -335,6 +334,5 @@ async def play(c: Client, m: Message): os.remove(image) except Exception as ep: await suhu.delete() - await music_off(chat_id) await remove_active_chat(chat_id) await m.reply_text(f"šŸš« error: `{ep}`")