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