mirror of
				https://github.com/onyx-and-iris/obsws-ruby.git
				synced 2025-10-31 16:51:44 +00:00 
			
		
		
		
	rename info to infostring, now returns a string
This commit is contained in:
		
							parent
							
								
									6dc21314e8
								
							
						
					
					
						commit
						18d291c6eb
					
				| @ -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) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user