What do I do if my friend's girlfriend likes me?

He is my best friend. I like this girl back. She ask me to hang out with them anytime she can. She flirts with me more than him. He doesn't give her enough attention so she comes to me. He is always mean to her so she comes to me.
What do I do if my friend's girlfriend likes me?
Post Opinion