[set] setup logger
This commit is contained in:
parent
98bf36ec00
commit
725e0669a3
8
main.py
8
main.py
@ -1,17 +1,19 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
from program import LOGS
|
||||||
from pytgcalls import idle
|
from pytgcalls import idle
|
||||||
from driver.core import calls, bot, user
|
from driver.core import calls, bot, user
|
||||||
|
|
||||||
|
|
||||||
async def start_bot():
|
async def start_bot():
|
||||||
await bot.start()
|
await bot.start()
|
||||||
print("[INFO]: BOT & UBOT CLIENT STARTED !!")
|
LOGS.info("[INFO]: BOT & USERBOT CLIENT STARTED !!")
|
||||||
await calls.start()
|
await calls.start()
|
||||||
print("[INFO]: PY-TGCALLS CLIENT STARTED !!")
|
LOGS.info("[INFO]: PY-TGCALLS CLIENT STARTED !!")
|
||||||
await user.join_chat("VeezSupportGroup")
|
await user.join_chat("VeezSupportGroup")
|
||||||
await user.join_chat("levinachannel")
|
await user.join_chat("levinachannel")
|
||||||
await idle()
|
await idle()
|
||||||
print("[INFO]: STOPPING BOT & USERBOT")
|
LOGS.info("[INFO]: BOT & USERBOT STOPPED !!")
|
||||||
await bot.stop()
|
await bot.stop()
|
||||||
|
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
Loading…
Reference in New Issue
Block a user