Automatic pip install on update

This commit is contained in:
augustin64 2024-11-20 10:37:20 +01:00
parent d824bf4c1b
commit dcb2134744
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ if secret == "":
#Automatic start of MsRewards
"""
def daily_command():
subprocess.Popen(["git",'pull'])
subprocess.Popen(["git","pull"])
subprocess.Popen(["pkill","-9","chrome"])
subprocess.Popen(["pkill","-9","Xvfb"])
subprocess.Popen(["pkill","-9","Xvnc"])

1
V6.py
View File

@ -1019,6 +1019,7 @@ def log_error(msg):
def check_updated():
if config.has_been_updated():
subprocess.Popen(["pip","install", "-r", "requirements.txt"])
config.discord.wh.send(f"Updated to {config.version}", username="update",
avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")