sahanind commited on
Commit
42a6a5f
·
verified ·
1 Parent(s): 97dccbf

Update bot.py

Browse files
Files changed (1) hide show
  1. bot.py +2 -2
bot.py CHANGED
@@ -39,14 +39,14 @@ bot = Client(
39
  workers=50,
40
  plugins=dict(root="plugins"),
41
  )
42
- async def start_botcc():
43
  await bot.start()
44
 
45
  def run_asyncio_main():
46
  asyncio.run(start_botcc())
47
 
48
 
49
- thread = threading.Thread(target=run_asyncio_main)
50
  thread.daemon = True # Set as daemon so it exits when main thread exits
51
  thread.start()
52
 
 
39
  workers=50,
40
  plugins=dict(root="plugins"),
41
  )
42
+ def start_botcc():
43
  await bot.start()
44
 
45
  def run_asyncio_main():
46
  asyncio.run(start_botcc())
47
 
48
 
49
+ thread = threading.Thread(target=start_botcc)
50
  thread.daemon = True # Set as daemon so it exits when main thread exits
51
  thread.start()
52