Spaces:
Paused
Paused
testing2
Browse files- pyUltroid/__init__.py +6 -1
pyUltroid/__init__.py
CHANGED
|
@@ -77,7 +77,12 @@ if run_as_module:
|
|
| 77 |
if USER_MODE:
|
| 78 |
asst = ultroid_bot
|
| 79 |
else:
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
if BOT_MODE:
|
| 83 |
ultroid_bot = asst
|
|
|
|
| 77 |
if USER_MODE:
|
| 78 |
asst = ultroid_bot
|
| 79 |
else:
|
| 80 |
+
try:
|
| 81 |
+
asst = UltroidClient("sessions/asst", bot_token=udB.get_key("BOT_TOKEN"), udB=udB)
|
| 82 |
+
except Exception as e:
|
| 83 |
+
LOGS.warning(f"Failed to initialize assistant bot: {e}")
|
| 84 |
+
LOGS.info("Running without assistant bot...")
|
| 85 |
+
asst = ultroid_bot
|
| 86 |
|
| 87 |
if BOT_MODE:
|
| 88 |
ultroid_bot = asst
|