Copyright (C) 2021 By VeezMusicProject
This commit is contained in:
parent
628ccba706
commit
5a30124838
@ -43,23 +43,23 @@ def load_plugins(plugin_name):
|
|||||||
|
|
||||||
async def start():
|
async def start():
|
||||||
print('\n')
|
print('\n')
|
||||||
print('------------------- Initalizing VEEZ ---------------------')
|
print('------------------ Initalizing VEEZ --------------------')
|
||||||
if bot:
|
if bot:
|
||||||
await bot.start()
|
await bot.start()
|
||||||
await app.start()
|
await app.start()
|
||||||
await call_py.start()
|
await call_py.start()
|
||||||
print('----------------------- DONE ------------------------')
|
print('------------------------ DONE --------------------------')
|
||||||
print('--------------------- Importing ---------------------')
|
print('------------------ Importing Modules -------------------')
|
||||||
for name in files:
|
for name in files:
|
||||||
with open(name) as a:
|
with open(name) as a:
|
||||||
path_ = Path(a.name)
|
path_ = Path(a.name)
|
||||||
plugin_name = path_.stem
|
plugin_name = path_.stem
|
||||||
load_plugins(plugin_name.replace(".py", ""))
|
load_plugins(plugin_name.replace(".py", ""))
|
||||||
print('----------------------- INITIATED VEEZ ------------------------')
|
print('------------------- INITIATED VEEZ ---------------------')
|
||||||
print(' Logged in as User =>> {}'.format((await app.get_me()).first_name))
|
print(' Logged in as User =>> {}'.format((await app.get_me()).first_name))
|
||||||
if bot:
|
if bot:
|
||||||
print(' and Bot =>> {}'.format((await bot.get_me()).first_name))
|
print(' Logged in to Bots =>> {}'.format((await bot.get_me()).first_name))
|
||||||
print('-----------------------------------------------------')
|
print('--------------------------------------------------------')
|
||||||
await idle()
|
await idle()
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
is_bot = bool(Veez.BOT_TOKEN)
|
is_bot = bool(Veez.BOT_TOKEN)
|
||||||
|
Loading…
Reference in New Issue
Block a user