randydev commited on
Commit
cd48cf6
1 Parent(s): 9b45bad

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -6
main.py CHANGED
@@ -24,6 +24,8 @@ import asyncio
24
  import io
25
  import os
26
  import re
 
 
27
  from PIL import Image
28
 
29
  from pyrogram import *
@@ -35,11 +37,7 @@ from config import *
35
 
36
  import google.generativeai as genai
37
  from google.api_core.exceptions import InvalidArgument
38
-
39
- import os
40
- from os import getenv
41
-
42
- from dotenv import load_dotenv
43
 
44
  load_dotenv()
45
  API_ID = os.environ["API_ID"]
@@ -260,7 +258,7 @@ async def chatbot_talk(client: Client, message: Message):
260
  async def main():
261
  await client.start()
262
  me = await client.get_me()
263
- print(f"started bot: {me.first_name}")
264
 
265
  if __name__ == "__name__":
266
  asyncio.run(main())
 
24
  import io
25
  import os
26
  import re
27
+ from os import getenv
28
+ from dotenv import load_dotenv
29
  from PIL import Image
30
 
31
  from pyrogram import *
 
37
 
38
  import google.generativeai as genai
39
  from google.api_core.exceptions import InvalidArgument
40
+ from logger import LOGS
 
 
 
 
41
 
42
  load_dotenv()
43
  API_ID = os.environ["API_ID"]
 
258
  async def main():
259
  await client.start()
260
  me = await client.get_me()
261
+ LOGS.info(f"started bot: {me.first_name}")
262
 
263
  if __name__ == "__name__":
264
  asyncio.run(main())