Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -150,11 +150,11 @@ async def tiktok_downloader(client: Client, message: Message):
|
|
150 |
async def setup():
|
151 |
try:
|
152 |
await client.start()
|
153 |
-
|
154 |
await start_periodic_task()
|
155 |
# Run the client
|
156 |
await idle()
|
157 |
except Exception as e:
|
158 |
-
|
159 |
|
160 |
client.run(setup())
|
|
|
150 |
async def setup():
|
151 |
try:
|
152 |
await client.start()
|
153 |
+
logging.info("Bot started successfully")
|
154 |
await start_periodic_task()
|
155 |
# Run the client
|
156 |
await idle()
|
157 |
except Exception as e:
|
158 |
+
logging.info(f"Error in setup: {e}")
|
159 |
|
160 |
client.run(setup())
|