rename info to infostring, now returns a string

This commit is contained in:
onyx-and-iris 2023-07-26 10:18:32 +01:00
parent 6dc21314e8
commit 18d291c6eb

View File

@ -11,7 +11,7 @@ class Main
@e_client = OBSWS::Events::Client.new(**kwargs) @e_client = OBSWS::Events::Client.new(**kwargs)
@e_client.add_observer(self) @e_client.add_observer(self)
puts info.join("\n") puts infostring
@running = true @running = true
end end
@ -19,14 +19,14 @@ class Main
sleep(0.1) while running sleep(0.1) while running
end end
def info def infostring
resp = @r_client.get_version resp = @r_client.get_version
[ [
"Using obs version:", "Using obs version:",
resp.obs_version, resp.obs_version,
"With websocket version:", "With websocket version:",
resp.obs_web_socket_version resp.obs_web_socket_version
] ].join("\n")
end end
def on_current_program_scene_changed(data) def on_current_program_scene_changed(data)