Skip to content

Commit

Permalink
Merge pull request #15 from Zedb0T/cooldowns3
Browse files Browse the repository at this point in the history
Add check for launcher version and print a messsage
  • Loading branch information
Zedb0T authored Aug 4, 2022
2 parents ed6da54 + 6f3ed0b commit 691c22a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/twitchcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sys
import random
from dotenv import load_dotenv
from os.path import exists

load_dotenv()

Expand All @@ -26,6 +27,7 @@

print(application_path)
OAUTH = str(os.getenv("OAUTH"))
launcher_version = exists(application_path+"\OpenGOAL-Launcher.exe")
PATHTOGOALC = application_path + "\goalc.exe"
PATHTOGK = application_path + "\gk.exe -boot -fakeiso -debug -v"

Expand Down Expand Up @@ -64,11 +66,16 @@ def cd_check(id):
#
#os.system(r'start "'+ MOTD +'" /d "C:\\Users\\Zed\\Documents\\GitHub\\OpenGoalCheckpointRandomizer\\Checkpoint randomizer\\goalc.exe"') #repl cmd window
#"%mypath%/gk.exe" -boot -fakeiso -debug -v
if launcher_version:
print("ERROR LAUNCHER VERSION DETECTED, CURRENTLY ONLY WORKS WITH RELEASE BUILD")
time.sleep(400)
quit()
GKCOMMANDLINE = PATHTOGK
GKCOMMANDLINElist = GKCOMMANDLINE.split()
print("If it errors below that is O.K.")
print("Cooldown Message: "+COOLDOWNMESSAGE)
print("All Points: "+ALLPOINTS)

subprocess.Popen("""taskkill /F /IM gk.exe""",shell=True)
subprocess.Popen("""taskkill /F /IM goalc.exe""",shell=True)
time.sleep(3)
Expand Down

0 comments on commit 691c22a

Please sign in to comment.