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}`")