understanding commited on
Commit
5937486
·
verified ·
1 Parent(s): 53f81dc

Create uptime.py

Browse files
Files changed (1) hide show
  1. 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)