add pull
This commit is contained in:
parent
811ebbd8e6
commit
b0f7d20c49
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