From a6e1a244a2154c553608ced4de7336080ff9a81c Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 13 Sep 2021 22:10:10 +0700 Subject: [PATCH] bad --- bot/__main__.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/bot/__main__.py b/bot/__main__.py index 1e37b9a..f078a89 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -5,7 +5,6 @@ import logging import time import sys import asyncio -import uvloop import glob import importlib from pathlib import Path @@ -31,7 +30,6 @@ loop = asyncio.get_event_loop() _path = f"bot/*.py" files = glob.glob(_path) - def load_plugins(plugin_name): path = Path(f"bot/{plugin_name}.py") name = "bot.{}".format(plugin_name) @@ -41,7 +39,6 @@ def load_plugins(plugin_name): sys.modules[f"bot." + plugin_name] = load print("Imported => " + plugin_name) - async def start(): print('\n') print('------------------- Initalizing VC BOT ---------------------') @@ -62,10 +59,16 @@ async def start(): print(' and Bot =>> {}'.format((await bot.get_me()).first_name)) print('-----------------------------------------------------') await idle() - print('[INFO]: STOPPING BOT') - - -if __name__ == "__main__": - uvloop.install() +if __name__ == '__main__': is_bot = bool(Veez.BOT_TOKEN) loop.run_until_complete(start()) + + +# bot.start() +# print("[STATUS]:✅ »» BOT CLIENT STARTED ««") +# app.start() +# print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««") +# call_py.start() +# print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««") +# idle() +# print("[STATUS]:❌ »» BOT STOPPED ««")