Skip to content

Commit

Permalink
implemeneted OBS error clipping for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Stream-PC committed Dec 20, 2022
1 parent d25e660 commit 3ae283d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pyclashbot/bot/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def state_tree(

# DEBUG::: wait forever instead of restarting
# while True:time.sleep(1000)
clip_that()

# run restart state
state = state_restart(logger)
Expand Down Expand Up @@ -399,9 +400,25 @@ def state_war(logger) -> Literal["restart", "account_switching"]:



#FOR OBS RECORDING OF ERRORS
def clip_that():
import pyautogui

#press key combination
pyautogui.keyDown("ctrl")
pyautogui.keyDown("shift")
time.sleep(0.33)
pyautogui.keyDown("r")
time.sleep(0.33)

#unpress
pyautogui.keyUp("r")
pyautogui.keyUp("ctrl")
pyautogui.keyUp("shift")

print("Clipped this error!")





Expand Down

0 comments on commit 3ae283d

Please sign in to comment.