add pull
This commit is contained in:
parent
268b030c82
commit
b0e9f5639c
1 changed files with 11 additions and 0 deletions
11
worker/pull.py
Normal file
11
worker/pull.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue