diff --git a/hack.py b/hack.py index 3dc70b5..01dd635 100644 --- a/hack.py +++ b/hack.py @@ -92,11 +92,14 @@ class Hack(): return local_element - def hack_loop(self, method): + def hack_loop(self, method, time: float | None = None): """Run the hack loop""" + if time == None: + time = self.wait_time + while True: # Reduce CPU usage - sleep(self.wait_time) + sleep(time) # Cheat method()