|
|
@ -51,6 +51,7 @@ if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
# Create system tray icon
|
|
|
|
# Create system tray icon
|
|
|
|
icon = create_tray_icon()
|
|
|
|
icon = create_tray_icon()
|
|
|
|
|
|
|
|
time.sleep(1) # wait for system tray icon to initialize
|
|
|
|
|
|
|
|
|
|
|
|
# Loop to check if Chatterino is running every 10 minutes
|
|
|
|
# Loop to check if Chatterino is running every 10 minutes
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
@ -64,5 +65,4 @@ if __name__ == '__main__':
|
|
|
|
print("[" + timenow + "] Chatterino is not running. Starting in 30 seconds...")
|
|
|
|
print("[" + timenow + "] Chatterino is not running. Starting in 30 seconds...")
|
|
|
|
time.sleep(30)
|
|
|
|
time.sleep(30)
|
|
|
|
run_program(program_path)
|
|
|
|
run_program(program_path)
|
|
|
|
time.sleep(1) # wait for system tray icon to initialize
|
|
|
|
|
|
|
|
time.sleep(600) # wait 10 minutes
|
|
|
|
time.sleep(600) # wait 10 minutes
|
|
|
|