What should I do?

There is this guy that I like and he would always flirt with me and he sent me ab pics and called me babe. Yet one day he told me he just started having a thing with my friend. I told him how I felt and all he said was i’m sorry. That was a couple of weeks ago. Yesterday he texted me and was telling me how sorry he actually feels and how bad he feels when he talks to me because he knows he hurt me. Today he was texting me how he missed our conversations and texts me a lot more and says (as a joke) “were gunna bang” and “can we cuddle” yet he still has a thing with my friend. Please tell me what I should do!