From ce3ee93910661b5ba18047cdee16a58fedb9b012 Mon Sep 17 00:00:00 2001 From: SiHuan Date: Sat, 24 Oct 2020 18:43:39 +0800 Subject: [PATCH] add 106 door --- worker/106.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 worker/106.py diff --git a/worker/106.py b/worker/106.py new file mode 100644 index 0000000..41619d6 --- /dev/null +++ b/worker/106.py @@ -0,0 +1,10 @@ +import requests +from zzcore import StdAns + +class Ans(StdAns): + AllowGroup = [959613860] + def GETMSG(self): + seconds = int(requests.get("http://127.0.0.1:8095/").text) + m, s = divmod(seconds, 60) + h, m = divmod(m, 60) + return f'{h}小时{m}分钟{s}秒前有人来过。' \ No newline at end of file