Update main.py

This commit is contained in:
Vladimir Eremin authored and GitHub committed 2021-12-22 00:59:17 +03:00
1 parent cc87216203
commit f2f8350dc0
1 file changed
+2 -2
+2 -2
View File
@@ -25,13 +25,13 @@ def ifColorPattern(color1, color2, colors):
else:
return False
# It makes our P key toggle the bot
# It makes our P key toggles the bot
keyboard.add_hotkey("p", lambda:switch())
try:
while True:
while state:
time.sleep(0.1) # Doing it slower because screenshots isn't an instant action
time.sleep(0.1) # Doing it slower because screenshot isn't an instant action
screen = pyautogui.screenshot().load()
# Taking colors of pixels on the sticks edges