From 071f8b15e12981da781b103edaef9e80706b693c Mon Sep 17 00:00:00 2001 From: zxce3 Date: Tue, 14 Sep 2021 06:13:39 +0700 Subject: [PATCH] Revert "Copyright (C) 2021 By VeezMusicProject" This reverts commit c345e5a96c3b99a067dbb26be922f3d0e0eb7d86. --- .gitignore | 2 -- app.json | 2 -- bot/__main__.py | 2 -- bot/callback.py | 2 -- bot/rmtrash.py | 2 -- bot/song.py | 2 -- bot/start.py | 2 -- bot/videoplayer.py | 2 -- bot/ytsearch.py | 9 +++++++-- cache/__init__.py | 2 -- cache/admins.py | 2 -- config.py | 2 -- docker-compose.yml | 2 -- helpers/admins.py | 2 -- helpers/decorators.py | 2 -- helpers/errors.py | 2 -- helpers/filters.py | 2 -- helpers/loggings.py | 2 -- helpers/utils.py | 2 -- heroku.yml | 2 -- 20 files changed, 7 insertions(+), 40 deletions(-) diff --git a/.gitignore b/.gitignore index 7a82bbf..62925dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - *.session *.session-journal .env diff --git a/app.json b/app.json index aa64b8f..bb153dc 100644 --- a/app.json +++ b/app.json @@ -1,5 +1,3 @@ -// Copyright (C) 2021 By VeezMusicProject - { "name": "Veez Video Stream Bot", "description": "bot to stream video on telegram video chat, powered by pytgcalls and pyrogram", diff --git a/bot/__main__.py b/bot/__main__.py index 3697a94..3cee3c7 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - # =========== # running bot # =========== diff --git a/bot/callback.py b/bot/callback.py index 87487ef..cee8c76 100644 --- a/bot/callback.py +++ b/bot/callback.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery diff --git a/bot/rmtrash.py b/bot/rmtrash.py index 7a52e6f..c07dc76 100644 --- a/bot/rmtrash.py +++ b/bot/rmtrash.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - import os from pyrogram import Client, filters from pyrogram.types import Message diff --git a/bot/song.py b/bot/song.py index 66bdc64..5772760 100644 --- a/bot/song.py +++ b/bot/song.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from __future__ import unicode_literals import asyncio diff --git a/bot/start.py b/bot/start.py index 9674eb8..eb13ead 100644 --- a/bot/start.py +++ b/bot/start.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from datetime import datetime from time import time diff --git a/bot/videoplayer.py b/bot/videoplayer.py index bed3ad9..c3a8ba9 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - import os import asyncio import subprocess diff --git a/bot/ytsearch.py b/bot/ytsearch.py index bf2277c..242198e 100644 --- a/bot/ytsearch.py +++ b/bot/ytsearch.py @@ -1,5 +1,4 @@ -# Copyright (C) 2021 By VeezMusicProject - +import logging from pyrogram import Client as app from pyrogram.types import Message @@ -7,6 +6,12 @@ from youtube_search import YoutubeSearch from config import Veez from helpers.filters import command +# logging +# logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s") +# logger = logging.getLogger(__name__) +# logging.getLogger("pyrogram").setLevel(logging.WARNING) + + @app.on_message(command(["search", f"search@{Veez.BOT_USERNAME}"])) async def ytsearch(_, message: Message): m = await message.reply_text("🔎 **searching url...**") diff --git a/cache/__init__.py b/cache/__init__.py index 0bbe572..6e61f7d 100644 --- a/cache/__init__.py +++ b/cache/__init__.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from cache.admins import admins, get, set __all__ = ["admins", "get", "set"] diff --git a/cache/admins.py b/cache/admins.py index 3e0966f..dcc53fa 100644 --- a/cache/admins.py +++ b/cache/admins.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from typing import Dict, List from config import Veez diff --git a/config.py b/config.py index 5b15b54..23bb404 100644 --- a/config.py +++ b/config.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - import os from os import path, getenv from dotenv import load_dotenv diff --git a/docker-compose.yml b/docker-compose.yml index cb58858..4d70466 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - version: '3.4' services: diff --git a/helpers/admins.py b/helpers/admins.py index 6887c0a..680e62c 100644 --- a/helpers/admins.py +++ b/helpers/admins.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - import cache.admins from typing import List diff --git a/helpers/decorators.py b/helpers/decorators.py index 2ecf1a3..16677b3 100644 --- a/helpers/decorators.py +++ b/helpers/decorators.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from typing import Callable from pyrogram import Client diff --git a/helpers/errors.py b/helpers/errors.py index 581debc..b6307c8 100644 --- a/helpers/errors.py +++ b/helpers/errors.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - class DurationLimitError(Exception): pass diff --git a/helpers/filters.py b/helpers/filters.py index c7c6dc7..17b8558 100644 --- a/helpers/filters.py +++ b/helpers/filters.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from typing import Union, List from pyrogram import filters diff --git a/helpers/loggings.py b/helpers/loggings.py index 9200be6..187d1a0 100644 --- a/helpers/loggings.py +++ b/helpers/loggings.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - import logging import time diff --git a/helpers/utils.py b/helpers/utils.py index ee89ffe..0bcd429 100644 --- a/helpers/utils.py +++ b/helpers/utils.py @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - from youtube_dl import YoutubeDL from youtube_dl.utils import ExtractorError diff --git a/heroku.yml b/heroku.yml index 247974f..3f7a36a 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,5 +1,3 @@ -# Copyright (C) 2021 By VeezMusicProject - build: docker: worker: Dockerfile