add an error message to points read too
This commit is contained in:
		
							parent
							
								
									543dc3e5b9
								
							
						
					
					
						commit
						85c4df9250
					
				| @ -39,6 +39,9 @@ def owncast_webhook(): | ||||
|             send_help() | ||||
|         elif data["eventData"]["body"].startswith(f"{prefix}points"): | ||||
|             points = read_users_points(db, user_id) | ||||
|             if points is None: | ||||
|                 send_chat("Error reading points.") | ||||
|             else: | ||||
|                 send_chat(f"{display_name}'s points: {points}") | ||||
|         elif data["eventData"]["body"].startswith(f"{prefix}name_update"): | ||||
|             # Forces name update in case bot didn't catch the NAME_CHANGE | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user