Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelseeger committed Jul 22, 2024
1 parent f07e57c commit 223e8a8
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions obs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
from obs_tools.types import UIInfo, Screen
from rich import print


@click.command()
def main():
with obs.ReqClient(host='localhost', port=4455, password=config.obs_ws_pw, timeout=3) as cl:
with obs.ReqClient(
host="localhost", port=4455, password=config.obs_ws_pw, timeout=3
) as cl:
resp = cl.get_version()
print(f"OBS Version: {resp.obs_version}")

Expand All @@ -19,12 +22,14 @@ def main():

if len(ui.activeScreens) and Screen.loading in ui.activeScreens:
print(Screen.loading)

data = {
"message": Screen.loading
}

cl.call_vendor_request(vendor_name="AdvancedSceneSwitcher", request_type="AdvancedSceneSwitcherMessage", request_data=data)
data = {"message": Screen.loading}

cl.call_vendor_request(
vendor_name="AdvancedSceneSwitcher",
request_type="AdvancedSceneSwitcherMessage",
request_data=data,
)
sleep(5)
elif len(ui.activeScreens) == 0:
print("In game")
Expand All @@ -33,5 +38,5 @@ def main():
sleep(0.25)


if __name__ == '__main__':
main()
if __name__ == "__main__":
main()

0 comments on commit 223e8a8

Please sign in to comment.