Spaces:
Runtime error
Runtime error
Create uptime.py
Browse files- bot/core/uptime.py +7 -0
bot/core/uptime.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PATH: bot/core/uptime.py
|
| 2 |
+
import time
|
| 3 |
+
|
| 4 |
+
START_TS = time.time()
|
| 5 |
+
|
| 6 |
+
def uptime_seconds() -> int:
|
| 7 |
+
return int(time.time() - START_TS)
|