Skip to content

Commit

Permalink
adjusting save image so it only functions on my PC
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmiglio committed Apr 13, 2024
1 parent 07c480e commit ffe4e6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pyclashbot/bot/do_fight_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,7 @@ def save_fight_image(vm_index):
if os.path.exists(folder_path):
print("Folder exists.")
else:
print("Folder does not exist. Creating folder...")
os.makedirs(folder_path)
return

path = os.path.join(folder_path, f"screenshot{time.time() + random.randint(0, 9)}.png")
image.save(path)
Expand Down

0 comments on commit ffe4e6b

Please sign in to comment.