Spaces:
Running
Running
Update bot.py
Browse files
bot.py
CHANGED
@@ -81,5 +81,5 @@ class Bot:
|
|
81 |
current_time = datetime.now() + timedelta(hours=3)
|
82 |
last_online_time = self.status["last_updated"].strftime("%H:%M:%S") if self.status["last_updated"] else None
|
83 |
if self.status["online"] and current_time - self.status["last_updated"] < timedelta(seconds=65):
|
84 |
-
return {"status": "
|
85 |
-
return {"status": "
|
|
|
81 |
current_time = datetime.now() + timedelta(hours=3)
|
82 |
last_online_time = self.status["last_updated"].strftime("%H:%M:%S") if self.status["last_updated"] else None
|
83 |
if self.status["online"] and current_time - self.status["last_updated"] < timedelta(seconds=65):
|
84 |
+
return {"status": "Online", "last_online_time": last_online_time}
|
85 |
+
return {"status": "Offline", "last_online_time": last_online_time}
|