XZZ/worker/pull.py

12 lines
237 B
Python
Raw Normal View History

2020-03-02 20:58:29 +08:00
from zzcore import StdAns
from subprocess import getoutput
class Ans(StdAns):
AllowUser = [1318000868]
UserNotAllow = '汝不是咱的Master!'
def GETMSG(self):
output = getoutput('git pull')
return output