What to do in a scenario where a girl who rejected you on multiple occasions , asks you to be her boyfriend?

So there's this girl who I really liked around 5 years back and she liked me to back then but rejected me since she was with another guy already. She broke up with that guy some time later and I asked her out again but she rejected me and started talking to another guy who she really liked ( I suppose ). Post that , I was just like a very good friend to her and nothing more. I stopped feeling for her the way I used to in the past but I still care for her as a good friend. As days went by , she started liking another guy who I suppose didn't like her back. Recently she tried to get back to her ex ( I suppose ) but he was already in a relationship with another person. A month later she tells me she wants to be with me. I don't really have the same strong feelings as before and I told her that. I didn't give a deep reason but I just told her I want to be by myself. Did I do the right thing?
What to do in a scenario where a girl who rejected you on multiple occasions , asks you to be her boyfriend?
Post Opinion