merge pull request #167 from levina-lab/cleaners
{check] cleaning files
This commit is contained in:
commit
f123df6132
@ -1,4 +1,3 @@
|
|||||||
import os
|
|
||||||
from os import getenv
|
from os import getenv
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from config import IMG_5
|
|
||||||
from driver.core import bot, calls, user
|
from driver.core import bot, calls, user
|
||||||
from driver.database.dbqueue import remove_active_chat
|
from driver.database.dbqueue import remove_active_chat
|
||||||
from driver.queues import (
|
from driver.queues import (
|
||||||
@ -76,7 +75,8 @@ async def skip_current_song(chat_id):
|
|||||||
)
|
)
|
||||||
pop_an_item(chat_id)
|
pop_an_item(chat_id)
|
||||||
return [songname, link, type]
|
return [songname, link, type]
|
||||||
except:
|
except BaseException as error:
|
||||||
|
print(error)
|
||||||
await calls.leave_group_call(chat_id)
|
await calls.leave_group_call(chat_id)
|
||||||
await remove_active_chat(chat_id)
|
await remove_active_chat(chat_id)
|
||||||
clear_queue(chat_id)
|
clear_queue(chat_id)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from cache.admins import admins
|
from cache.admins import admins
|
||||||
from driver.core import calls, bot
|
from driver.core import calls
|
||||||
from pyrogram import Client, filters
|
from pyrogram import Client, filters
|
||||||
from driver.design.thumbnail import thumb
|
from driver.design.thumbnail import thumb
|
||||||
from driver.design.chatname import CHAT_TITLE
|
from driver.design.chatname import CHAT_TITLE
|
||||||
@ -9,6 +9,7 @@ from driver.queues import QUEUE, clear_queue
|
|||||||
from driver.filters import command, other_filters
|
from driver.filters import command, other_filters
|
||||||
from driver.decorators import authorized_users_only, check_blacklist
|
from driver.decorators import authorized_users_only, check_blacklist
|
||||||
from driver.utils import skip_current_song, skip_item, remove_if_exists
|
from driver.utils import skip_current_song, skip_item, remove_if_exists
|
||||||
|
from config import BOT_USERNAME, IMG_5
|
||||||
|
|
||||||
from driver.database.dbqueue import (
|
from driver.database.dbqueue import (
|
||||||
is_music_playing,
|
is_music_playing,
|
||||||
@ -16,20 +17,9 @@ from driver.database.dbqueue import (
|
|||||||
music_off,
|
music_off,
|
||||||
music_on,
|
music_on,
|
||||||
)
|
)
|
||||||
from program.utils.inline import (
|
from program.utils.inline import stream_markup, close_mark
|
||||||
stream_markup,
|
|
||||||
close_mark,
|
|
||||||
back_mark,
|
|
||||||
)
|
|
||||||
from config import (
|
|
||||||
BOT_USERNAME,
|
|
||||||
GROUP_SUPPORT,
|
|
||||||
IMG_5,
|
|
||||||
UPDATES_CHANNEL,
|
|
||||||
)
|
|
||||||
from pyrogram.types import (
|
from pyrogram.types import (
|
||||||
CallbackQuery,
|
CallbackQuery,
|
||||||
InlineKeyboardButton,
|
|
||||||
InlineKeyboardMarkup,
|
InlineKeyboardMarkup,
|
||||||
Message,
|
Message,
|
||||||
)
|
)
|
||||||
@ -163,7 +153,7 @@ async def skip(c: Client, m: Message):
|
|||||||
if data == 0:
|
if data == 0:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
track = track + "\n" + f"**#{x}** - {hm}"
|
track = track + "\n" + f"**#{x}** - {data}"
|
||||||
await m.reply(track)
|
await m.reply(track)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
from pyrogram.types import Message
|
from pyrogram.types import Message
|
||||||
from pyrogram import Client, filters
|
from pyrogram import Client, filters
|
||||||
|
|
||||||
from config import SUDO_USERS, BOT_USERNAME
|
from config import BOT_USERNAME
|
||||||
from driver.core import bot
|
from driver.core import bot
|
||||||
from driver.filters import command, other_filters
|
from driver.filters import command
|
||||||
from driver.decorators import sudo_users_only
|
from driver.decorators import sudo_users_only
|
||||||
from driver.database.dblockchat import (
|
from driver.database.dblockchat import (
|
||||||
blacklist_chat,
|
blacklist_chat,
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from time import time
|
from time import time
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
from sys import version as pyver
|
|
||||||
from inspect import getfullargspec
|
from inspect import getfullargspec
|
||||||
|
|
||||||
from config import BOT_USERNAME as bname
|
from config import BOT_USERNAME as bname
|
||||||
|
@ -1,29 +1,19 @@
|
|||||||
# Copyright (C) 2021 By Veez Music-Project
|
# Copyright (C) 2021 By Veez Music-Project
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import time
|
|
||||||
import asyncio
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
import lyricsgenius
|
|
||||||
|
|
||||||
import aiofiles
|
|
||||||
import aiohttp
|
|
||||||
import requests
|
|
||||||
import wget
|
import wget
|
||||||
import yt_dlp
|
import yt_dlp
|
||||||
|
import traceback
|
||||||
|
import requests
|
||||||
|
import lyricsgenius
|
||||||
|
|
||||||
from pyrogram import Client, filters
|
from pyrogram import Client, filters
|
||||||
from pyrogram.errors import FloodWait, MessageNotModified
|
|
||||||
from pyrogram.types import Message
|
from pyrogram.types import Message
|
||||||
from youtube_search import YoutubeSearch
|
from youtube_search import YoutubeSearch
|
||||||
from youtubesearchpython import VideosSearch
|
|
||||||
from yt_dlp import YoutubeDL
|
from yt_dlp import YoutubeDL
|
||||||
|
|
||||||
from config import BOT_USERNAME as bn
|
from config import BOT_USERNAME as bn
|
||||||
from driver.decorators import check_blacklist
|
from driver.decorators import check_blacklist
|
||||||
from driver.filters import command, other_filters
|
from driver.filters import command
|
||||||
from driver.database.dbpunish import is_gbanned_user
|
|
||||||
from driver.utils import remove_if_exists
|
from driver.utils import remove_if_exists
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@ import wget
|
|||||||
import speedtest
|
import speedtest
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from program.utils.formatters import bytes
|
from driver.filters import command
|
||||||
from driver.filters import command, other_filters
|
|
||||||
from driver.decorators import sudo_users_only
|
from driver.decorators import sudo_users_only
|
||||||
from config import BOT_USERNAME as bname
|
from config import BOT_USERNAME as bname
|
||||||
from driver.core import bot as app
|
from driver.core import bot as app
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
import os
|
|
||||||
import re
|
|
||||||
import sys
|
import sys
|
||||||
import asyncio
|
|
||||||
import subprocess
|
|
||||||
from asyncio import sleep
|
|
||||||
|
|
||||||
from git import Repo
|
from git import Repo
|
||||||
from os import system, execle, environ
|
from os import system, execle, environ
|
||||||
@ -13,10 +8,8 @@ from pyrogram.types import Message
|
|||||||
from pyrogram import Client, filters
|
from pyrogram import Client, filters
|
||||||
from config import UPSTREAM_REPO, BOT_USERNAME
|
from config import UPSTREAM_REPO, BOT_USERNAME
|
||||||
|
|
||||||
from driver.core import bot
|
|
||||||
from driver.filters import command
|
from driver.filters import command
|
||||||
from driver.decorators import bot_creator
|
from driver.decorators import bot_creator
|
||||||
from driver.database.dbqueue import get_active_chats, remove_active_chat
|
|
||||||
|
|
||||||
|
|
||||||
def gen_chlog(repo, diff):
|
def gen_chlog(repo, diff):
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
""" inline section button """
|
""" inline section button """
|
||||||
|
|
||||||
from pyrogram.types import (
|
from pyrogram.types import (
|
||||||
CallbackQuery,
|
|
||||||
InlineKeyboardButton,
|
InlineKeyboardButton,
|
||||||
InlineKeyboardMarkup,
|
InlineKeyboardMarkup,
|
||||||
Message,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
from config import BOT_USERNAME
|
from config import BOT_USERNAME
|
||||||
from driver.decorators import check_blacklist
|
from driver.decorators import check_blacklist
|
||||||
from driver.filters import command
|
from driver.filters import command
|
||||||
from driver.database.dbpunish import is_gbanned_user
|
|
||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
|
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
|
||||||
from youtube_search import YoutubeSearch
|
from youtube_search import YoutubeSearch
|
||||||
|
Loading…
Reference in New Issue
Block a user