From 725e0669a3c682e980e0422e58a3eb0b3437fa7b Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 25 Feb 2022 10:57:12 +0700 Subject: [PATCH] [set] setup logger --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 6b5d240..fe64802 100644 --- a/main.py +++ b/main.py @@ -1,17 +1,19 @@ import asyncio + +from program import LOGS from pytgcalls import idle from driver.core import calls, bot, user async def start_bot(): await bot.start() - print("[INFO]: BOT & UBOT CLIENT STARTED !!") + LOGS.info("[INFO]: BOT & USERBOT CLIENT STARTED !!") 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("levinachannel") await idle() - print("[INFO]: STOPPING BOT & USERBOT") + LOGS.info("[INFO]: BOT & USERBOT STOPPED !!") await bot.stop() loop = asyncio.get_event_loop()