From 45fae053528b73e68a94062399e3f5b7abcd5c63 Mon Sep 17 00:00:00 2001 From: zxce3 Date: Sun, 12 Sep 2021 11:42:50 +0700 Subject: [PATCH] Cleanup --- bot/__main__.py | 1 - bot/callback.py | 1 - bot/entertainment.py | 1 - bot/song.py | 1 - bot/start.py | 1 - bot/sysinfo.py | 2 -- bot/userbotjoin.py | 1 - bot/videoplayer.py | 1 - bot/ytsearch.py | 2 -- cache/admins.py | 1 - helpers/decorators.py | 1 - helpers/filters.py | 1 - 12 files changed, 14 deletions(-) diff --git a/bot/__main__.py b/bot/__main__.py index dd3fc35..1887c7d 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -4,7 +4,6 @@ import asyncio from pyrogram import Client, idle -# from config import Veez.API_ID, Veez.API_HASH, Veez.BOT_TOKEN from config import Veez from bot.videoplayer import app from bot.videoplayer import call_py diff --git a/bot/callback.py b/bot/callback.py index eb923c3..cda9890 100644 --- a/bot/callback.py +++ b/bot/callback.py @@ -1,7 +1,6 @@ from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery -# from config import Veez.BOT_USERNAME, Veez.ASSISTANT_NAME as bn from config import Veez diff --git a/bot/entertainment.py b/bot/entertainment.py index 2fa1a9f..6093708 100644 --- a/bot/entertainment.py +++ b/bot/entertainment.py @@ -4,7 +4,6 @@ import requests from pyrogram import Client -# from config import Veez.BOT_USERNAME from config import Veez from helpers.filters import command diff --git a/bot/song.py b/bot/song.py index 4568468..322ca76 100644 --- a/bot/song.py +++ b/bot/song.py @@ -16,7 +16,6 @@ from pyrogram.errors import FloodWait, MessageNotModified from pyrogram.types import Message, InlineKeyboardButton, InlineKeyboardMarkup from youtube_search import YoutubeSearch -# from config import Veez.BOT_USERNAME from config import Veez from helpers.filters import command from helpers.decorators import humanbytes diff --git a/bot/start.py b/bot/start.py index 9cff49d..eb13ead 100644 --- a/bot/start.py +++ b/bot/start.py @@ -4,7 +4,6 @@ from time import time from pyrogram import Client, filters from pyrogram.types import Message, InlineKeyboardButton, InlineKeyboardMarkup -# from config import Veez.BOT_USERNAME from config import Veez from helpers.decorators import sudo_users_only from helpers.filters import command diff --git a/bot/sysinfo.py b/bot/sysinfo.py index b9a7c5f..9cc3959 100644 --- a/bot/sysinfo.py +++ b/bot/sysinfo.py @@ -7,8 +7,6 @@ import uuid import psutil from pyrogram import Client, filters - -# from config import Veez.BOT_USERNAME from config import Veez from helpers.decorators import sudo_users_only, humanbytes from helpers.filters import command diff --git a/bot/userbotjoin.py b/bot/userbotjoin.py index 82851ce..18a3fe5 100644 --- a/bot/userbotjoin.py +++ b/bot/userbotjoin.py @@ -6,7 +6,6 @@ from pyrogram.errors import UserAlreadyParticipant from helpers.filters import command from helpers.decorators import authorized_users_only, errors from bot.videoplayer import app as USER -# from config import Veez.BOT_USERNAME, Veez.SUDO_USERS from config import Veez diff --git a/bot/videoplayer.py b/bot/videoplayer.py index 12672a2..d986c91 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -11,7 +11,6 @@ from pytgcalls.types.input_stream import VideoParameters from pyrogram import Client, filters from pyrogram.types import Message -# from config import Veez.API_ID, Veez.API_HASH, Veez.SESSION_NAME, Veez.BOT_USERNAME from config import Veez from helpers.decorators import authorized_users_only from helpers.filters import command diff --git a/bot/ytsearch.py b/bot/ytsearch.py index ae9d632..7f10f4a 100644 --- a/bot/ytsearch.py +++ b/bot/ytsearch.py @@ -3,8 +3,6 @@ import logging from pyrogram import Client as app from pyrogram.types import Message from youtube_search import YoutubeSearch - -# from config import Veez.BOT_USERNAME from config import Veez from helpers.filters import command diff --git a/cache/admins.py b/cache/admins.py index d803df5..dcc53fa 100644 --- a/cache/admins.py +++ b/cache/admins.py @@ -1,5 +1,4 @@ from typing import Dict, List -# from config import admins from config import Veez diff --git a/helpers/decorators.py b/helpers/decorators.py index 94fa2e8..16677b3 100644 --- a/helpers/decorators.py +++ b/helpers/decorators.py @@ -3,7 +3,6 @@ from typing import Callable from pyrogram import Client from pyrogram.types import Message -# from config import Veez.SUDO_USERS from config import Veez from helpers.admins import get_administrators diff --git a/helpers/filters.py b/helpers/filters.py index 4ac6bd9..17b8558 100644 --- a/helpers/filters.py +++ b/helpers/filters.py @@ -2,7 +2,6 @@ from typing import Union, List from pyrogram import filters -# from config import Veez.COMMAND_PREFIXES from config import Veez other_filters = filters.group & ~filters.edited & ~filters.via_bot & ~filters.forwarded