Skip to content

Commit

Permalink
Fixed Tool not launching & Fixed another crash
Browse files Browse the repository at this point in the history
Entering a letter into the app id field no longer crashes the tool.
Fixed a problem regarding the updater to not correctly launch the tool
  • Loading branch information
Official-Husko committed Feb 24, 2022
1 parent 9a7dc12 commit 0df66e8
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,27 @@ def game_selection(cfg):
print(colored("======================================================================================================================", "red"))
print(colored("| |", "red"))
print(colored("| " + colored("Product: Husko's Steam Workshop Downloader", "white") + colored(" |", "red"), "red"))
print(colored("| " + colored("Version: ", "white") + version + colored(" |", "red"), "red"))
print(colored("| " + colored("Description: Download and Install SteamWorkshop mods with 1 click. Works on Legit and Cracked Copies", "white") + colored(" |", "red"), "red"))
print(colored("| " + colored("New: Multiple Game Support, Supported Games Display, Bug Fixes and a new config system", "white") + colored(" |", "red"), "red"))
print(colored("| " + colored("Version: ", "white") + version + colored(" |", "red"), "red"))
print(colored("| " + colored("Description: Download and Install SteamWorkshop mods with a few simple click.", "white") + colored(" |", "red"), "red"))
print(colored("| |", "red"))
print(colored("======================================================================================================================", "red"))
print("")
print("Supported Games: " + colored(str(len(supported_games)), "green"))
print("")
print("Please Enter a App ID")
global game
game = int(input(">> "))
try:
game = int(input(">> "))
except ValueError:
print(colored("Please enter a correct App ID", "red"))
sleep(3)
game_selection(cfg)
if game in supported_games:
check_config(cfg)
else:
print("Invalid App ID entered!")
sleep(3)
print("")
print(colored("Game is not Supported Sorry. Please open a request for me to add support to this game.", "yellow"))
sleep(5)
game_selection(cfg)

def config(cfg):
Expand All @@ -124,8 +129,7 @@ def config(cfg):
print(colored("| |", "red"))
print(colored("| " + colored("Product: Husko's Steam Workshop Downloader", "white") + colored(" |", "red"), "red"))
print(colored("| " + colored("Version: ", "white") + version + colored(" |", "red"), "red"))
print(colored("| " + colored("Description: Download and Install SteamWorkshop mods with 1 click. Works on Legit and Cracked Copies", "white") + colored(" |", "red"), "red"))
print(colored("| " + colored("New: Multiple Game Support, Supported Games Display, Bug Fixes and a new config system", "white") + colored(" |", "red"), "red"))
print(colored("| " + colored("Description: Download and Install SteamWorkshop mods with a few simple click.", "white") + colored(" |", "red"), "red"))
print(colored("| |", "red"))
print(colored("======================================================================================================================", "red"))
print("")
Expand Down

0 comments on commit 0df66e8

Please sign in to comment.