Added prevent lobby.

This commit is contained in:
Filip 2025-06-15 12:47:54 +02:00
parent 8744d5b538
commit e8a12d6225

View file

@ -1,6 +1,9 @@
from time import sleep
import pynput.mouse as mouse
import pynput.keyboard as keyboard
from threading import Thread
from datetime import datetime
from secrets import randbelow
k = keyboard.Controller()
m = mouse.Controller()
@ -18,6 +21,17 @@ def click_at(coordinates: tuple[int,int]):
m.position = coordinates
m.click(mouse.Button.left)
def prevent_lobby():
while True:
random_milliseconds = randbelow(500_000)
print(f"Sleeping for {random_milliseconds} milliseconds.")
sleep(random_milliseconds / 1_000)
print(f"{datetime.now()}: Preventing lobby")
k.tap(" ")
Thread(target=prevent_lobby).start()
while True:
k.tap(key_teleport)
sleep(10)