forked from piair/MsRewards-Reborn
Automatic pip install on update
This commit is contained in:
parent
d824bf4c1b
commit
dcb2134744
@ -67,7 +67,7 @@ if secret == "":
|
|||||||
#Automatic start of MsRewards
|
#Automatic start of MsRewards
|
||||||
"""
|
"""
|
||||||
def daily_command():
|
def daily_command():
|
||||||
subprocess.Popen(["git",'pull'])
|
subprocess.Popen(["git","pull"])
|
||||||
subprocess.Popen(["pkill","-9","chrome"])
|
subprocess.Popen(["pkill","-9","chrome"])
|
||||||
subprocess.Popen(["pkill","-9","Xvfb"])
|
subprocess.Popen(["pkill","-9","Xvfb"])
|
||||||
subprocess.Popen(["pkill","-9","Xvnc"])
|
subprocess.Popen(["pkill","-9","Xvnc"])
|
||||||
|
1
V6.py
1
V6.py
@ -1019,6 +1019,7 @@ def log_error(msg):
|
|||||||
|
|
||||||
def check_updated():
|
def check_updated():
|
||||||
if config.has_been_updated():
|
if config.has_been_updated():
|
||||||
|
subprocess.Popen(["pip","install", "-r", "requirements.txt"])
|
||||||
config.discord.wh.send(f"Updated to {config.version}", username="update",
|
config.discord.wh.send(f"Updated to {config.version}", username="update",
|
||||||
avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
|
avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user