Update bot.py
Browse files
bot.py
CHANGED
@@ -39,14 +39,14 @@ bot = Client(
|
|
39 |
workers=50,
|
40 |
plugins=dict(root="plugins"),
|
41 |
)
|
42 |
-
|
43 |
await bot.start()
|
44 |
|
45 |
def run_asyncio_main():
|
46 |
asyncio.run(start_botcc())
|
47 |
|
48 |
|
49 |
-
thread = threading.Thread(target=
|
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 |
|