randydev commited on
Commit
54a08f6
1 Parent(s): fc3d6f8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -37,6 +37,7 @@ from config 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()
@@ -256,6 +257,7 @@ async def chatbot_talk(client: Client, message: Message):
256
  return await message.reply_text(str(e))
257
 
258
  async def main():
 
259
  await client.start()
260
  me = await client.get_me()
261
  LOGS.info(f"started bot: {me.first_name}")
 
37
 
38
  import google.generativeai as genai
39
  from google.api_core.exceptions import InvalidArgument
40
+ import database as db
41
  from logger import LOGS
42
 
43
  load_dotenv()
 
257
  return await message.reply_text(str(e))
258
 
259
  async def main():
260
+ await db.connect()
261
  await client.start()
262
  me = await client.get_me()
263
  LOGS.info(f"started bot: {me.first_name}")