From c345e5a96c3b99a067dbb26be922f3d0e0eb7d86 Mon Sep 17 00:00:00 2001 From: zxce3 Date: Tue, 14 Sep 2021 06:09:26 +0700 Subject: [PATCH] Copyright (C) 2021 By VeezMusicProject --- .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, 40 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 62925dd..7a82bbf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + *.session *.session-journal .env diff --git a/app.json b/app.json index bb153dc..aa64b8f 100644 --- a/app.json +++ b/app.json @@ -1,3 +1,5 @@ +// 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 3cee3c7..3697a94 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + # =========== # running bot # =========== diff --git a/bot/callback.py b/bot/callback.py index cee8c76..87487ef 100644 --- a/bot/callback.py +++ b/bot/callback.py @@ -1,3 +1,5 @@ +# 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 c07dc76..7a52e6f 100644 --- a/bot/rmtrash.py +++ b/bot/rmtrash.py @@ -1,3 +1,5 @@ +# 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 5772760..66bdc64 100644 --- a/bot/song.py +++ b/bot/song.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + from __future__ import unicode_literals import asyncio diff --git a/bot/start.py b/bot/start.py index eb13ead..9674eb8 100644 --- a/bot/start.py +++ b/bot/start.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + from datetime import datetime from time import time diff --git a/bot/videoplayer.py b/bot/videoplayer.py index c3a8ba9..bed3ad9 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + import os import asyncio import subprocess diff --git a/bot/ytsearch.py b/bot/ytsearch.py index 242198e..bf2277c 100644 --- a/bot/ytsearch.py +++ b/bot/ytsearch.py @@ -1,4 +1,5 @@ -import logging +# Copyright (C) 2021 By VeezMusicProject + from pyrogram import Client as app from pyrogram.types import Message @@ -6,12 +7,6 @@ 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 6e61f7d..0bbe572 100644 --- a/cache/__init__.py +++ b/cache/__init__.py @@ -1,3 +1,5 @@ +# 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 dcc53fa..3e0966f 100644 --- a/cache/admins.py +++ b/cache/admins.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + from typing import Dict, List from config import Veez diff --git a/config.py b/config.py index 23bb404..5b15b54 100644 --- a/config.py +++ b/config.py @@ -1,3 +1,5 @@ +# 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 4d70466..cb58858 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + version: '3.4' services: diff --git a/helpers/admins.py b/helpers/admins.py index 680e62c..6887c0a 100644 --- a/helpers/admins.py +++ b/helpers/admins.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + import cache.admins from typing import List diff --git a/helpers/decorators.py b/helpers/decorators.py index 16677b3..2ecf1a3 100644 --- a/helpers/decorators.py +++ b/helpers/decorators.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + from typing import Callable from pyrogram import Client diff --git a/helpers/errors.py b/helpers/errors.py index b6307c8..581debc 100644 --- a/helpers/errors.py +++ b/helpers/errors.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + class DurationLimitError(Exception): pass diff --git a/helpers/filters.py b/helpers/filters.py index 17b8558..c7c6dc7 100644 --- a/helpers/filters.py +++ b/helpers/filters.py @@ -1,3 +1,5 @@ +# 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 187d1a0..9200be6 100644 --- a/helpers/loggings.py +++ b/helpers/loggings.py @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + import logging import time diff --git a/helpers/utils.py b/helpers/utils.py index 0bcd429..ee89ffe 100644 --- a/helpers/utils.py +++ b/helpers/utils.py @@ -1,3 +1,5 @@ +# 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 3f7a36a..247974f 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,3 +1,5 @@ +# Copyright (C) 2021 By VeezMusicProject + build: docker: worker: Dockerfile