From ffe4e6b946c7b48def0aacee9501b498316da47b Mon Sep 17 00:00:00 2001 From: Matt Main_PC Date: Sat, 13 Apr 2024 15:34:10 -0400 Subject: [PATCH] adjusting save image so it only functions on my PC --- src/pyclashbot/bot/do_fight_state.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pyclashbot/bot/do_fight_state.py b/src/pyclashbot/bot/do_fight_state.py index 379d40f08..cb3911f4a 100644 --- a/src/pyclashbot/bot/do_fight_state.py +++ b/src/pyclashbot/bot/do_fight_state.py @@ -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)