randydev commited on
Commit
3ae147e
1 Parent(s): 4063f5f

Update chatbot/__main__.py

Browse files
Files changed (1) hide show
  1. chatbot/__main__.py +2 -0
chatbot/__main__.py CHANGED
@@ -25,6 +25,7 @@ from pyrogram import idle
25
  import traceback
26
 
27
  from chatbot import Randydev
 
28
  from logger import LOGS
29
  from pyrogram.errors import *
30
  from contextlib import closing, suppress
@@ -37,6 +38,7 @@ loop = asyncio.get_event_loop()
37
 
38
  async def main():
39
  try:
 
40
  randydev = Randydev(loop=loop)
41
  await randydev.start()
42
  await idle()
 
25
  import traceback
26
 
27
  from chatbot import Randydev
28
+ from database import db
29
  from logger import LOGS
30
  from pyrogram.errors import *
31
  from contextlib import closing, suppress
 
38
 
39
  async def main():
40
  try:
41
+ await db.connect()
42
  randydev = Randydev(loop=loop)
43
  await randydev.start()
44
  await idle()