commit
41328eaa8e
@ -5,6 +5,7 @@ import logging
|
|||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import uvloop
|
||||||
import glob
|
import glob
|
||||||
import importlib
|
import importlib
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@ -30,6 +31,7 @@ loop = asyncio.get_event_loop()
|
|||||||
_path = f"bot/*.py"
|
_path = f"bot/*.py"
|
||||||
files = glob.glob(_path)
|
files = glob.glob(_path)
|
||||||
|
|
||||||
|
|
||||||
def load_plugins(plugin_name):
|
def load_plugins(plugin_name):
|
||||||
path = Path(f"bot/{plugin_name}.py")
|
path = Path(f"bot/{plugin_name}.py")
|
||||||
name = "bot.{}".format(plugin_name)
|
name = "bot.{}".format(plugin_name)
|
||||||
@ -39,6 +41,7 @@ def load_plugins(plugin_name):
|
|||||||
sys.modules[f"bot." + plugin_name] = load
|
sys.modules[f"bot." + plugin_name] = load
|
||||||
print("Imported => " + plugin_name)
|
print("Imported => " + plugin_name)
|
||||||
|
|
||||||
|
|
||||||
async def start():
|
async def start():
|
||||||
print('\n')
|
print('\n')
|
||||||
print('------------------- Initalizing VC BOT ---------------------')
|
print('------------------- Initalizing VC BOT ---------------------')
|
||||||
@ -59,16 +62,10 @@ async def start():
|
|||||||
print(' and Bot =>> {}'.format((await bot.get_me()).first_name))
|
print(' and Bot =>> {}'.format((await bot.get_me()).first_name))
|
||||||
print('-----------------------------------------------------')
|
print('-----------------------------------------------------')
|
||||||
await idle()
|
await idle()
|
||||||
if __name__ == '__main__':
|
print('[INFO]: STOPPING BOT')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
uvloop.install()
|
||||||
is_bot = bool(Veez.BOT_TOKEN)
|
is_bot = bool(Veez.BOT_TOKEN)
|
||||||
loop.run_until_complete(start())
|
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 ««")
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
pathlib
|
pathlib
|
||||||
tgcrypto
|
tgcrypto
|
||||||
|
uvloop
|
||||||
asyncio
|
asyncio
|
||||||
ffmpeg-python
|
ffmpeg-python
|
||||||
googletrans==4.0.0rc1
|
googletrans==4.0.0rc1
|
||||||
|
Loading…
Reference in New Issue
Block a user