XZZ/worker/106.py

11 lines
316 B
Python
Raw Permalink Normal View History

2020-10-24 18:43:39 +08:00
import requests
from zzcore import StdAns
class Ans(StdAns):
2020-10-25 19:04:17 +08:00
AllowGroup = [959613860, 983250332]
2020-10-24 18:43:39 +08:00
def GETMSG(self):
seconds = int(requests.get("http://127.0.0.1:8095/").text)
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
2020-10-25 19:04:17 +08:00
return f'{h}小时{m}分钟{s}秒前有人来过。'