From b0f7d20c490d3cc615cbb77bad3a181a1c84e180 Mon Sep 17 00:00:00 2001 From: SiHuan Date: Mon, 2 Mar 2020 20:58:29 +0800 Subject: [PATCH] add pull --- worker/pull.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 worker/pull.py diff --git a/worker/pull.py b/worker/pull.py new file mode 100644 index 0000000..30cc934 --- /dev/null +++ b/worker/pull.py @@ -0,0 +1,11 @@ +from zzcore import StdAns + +from subprocess import getoutput + +class Ans(StdAns): + AllowUser = [1318000868] + UserNotAllow = '汝不是咱的Master!' + + def GETMSG(self): + output = getoutput('git pull') + return output